Page 1 of 1

error_log komisch

Posted: 2005-12-22 14:49
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?

Re: error_log komisch

Posted: 2005-12-22 18:40
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.

Re: error_log komisch

Posted: 2005-12-22 21:02
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.

Re: error_log komisch

Posted: 2005-12-22 21:36
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.

Re: error_log komisch

Posted: 2005-12-22 22:10
by afrika123
Das verstehe ich leider nicht.
Wie meinst Du das mit grep??
Nach was soll ich da suchen

Re: error_log komisch

Posted: 2005-12-23 00:00
by Roger Wilco

Code: Select all

grep -Ri "ErrorDocument 401" /

Re: error_log komisch

Posted: 2005-12-23 15:08
by afrika123
Funktioniert leider nicht
Wo liegen denn die errordocs wenn es so definiert ist:
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var