error_log komisch

Apache, Lighttpd, nginx, Cherokee
Post Reply
afrika123
Posts: 82
Joined: 2005-10-31 12:43
 

error_log komisch

Post by afrika123 »

Ich habe in der error_log

System ist mit suse 9.1 und confixx

Code: Select all

[Thu Dec 22 13:25:29 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[Thu Dec 22 13:25:29 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[Thu Dec 22 13:25:31 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[Thu Dec 22 13:25:31 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[Thu Dec 22 13:25:31 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[Thu Dec 22 13:25:32 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[Thu Dec 22 13:25:33 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[Thu Dec 22 13:25:34 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
Auszug aus der errors_conf

Code: Select all

ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
    ErrorDocument 410 /error/HTTP_GONE.html.var
    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
Wo kann ich da was gegen machen?
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: error_log komisch

Post by Roger Wilco »

Hast du noch an einer anderen Stelle ein ErrorDocument für den Errorcode 401 definiert? Die Fehlermeldung ist ja ziemlich eindeutig, passt aber leider nicht so recht zu dem, was in deiner errors_conf steht/stehen soll.
afrika123
Posts: 82
Joined: 2005-10-31 12:43
 

Re: error_log komisch

Post by afrika123 »

Habe das mal bei der mir verdächtigen domain gemacht, aber hat nichts gebracht.
Wo genau sollte denn das errordoku sein bei
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var

Bei jedem Web unter html/error
oder wo ist das?

Wie kann ich herrausbekommen welche Domain es verursacht und mit welchem Aufruf.
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: error_log komisch

Post by Roger Wilco »

afrika123 wrote:Wie kann ich herrausbekommen welche Domain es verursacht und mit welchem Aufruf.
Ein grep über deine Apachekonfiguration sollte helfen. Vergiss aber nicht auch Dateien zu durchsuchen, die nicht in /etc liegen, aber trotzdem von deinem Apache eingebunden werden.
afrika123
Posts: 82
Joined: 2005-10-31 12:43
 

Re: error_log komisch

Post by afrika123 »

Das verstehe ich leider nicht.
Wie meinst Du das mit grep??
Nach was soll ich da suchen
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: error_log komisch

Post by Roger Wilco »

Code: Select all

grep -Ri "ErrorDocument 401" /
afrika123
Posts: 82
Joined: 2005-10-31 12:43
 

Re: error_log komisch

Post by afrika123 »

Funktioniert leider nicht
Wo liegen denn die errordocs wenn es so definiert ist:
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
Post Reply