This is a discussion on how to detect what caused the 404, 403? within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hello, We are running Apache 1.31 on Solaris 8. Is there a way we can configure the http.conf ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
We are running Apache 1.31 on Solaris 8. Is there a way we can configure the http.conf or some other configuration file such that in the error logs it records what the page was that the user visited before clicking to cause a 404 or 403? Right now the line in our log file looks like [Wed Oct 19 00:03:10 2005] [error] [client 96.7.32.82] File does not exist: /usr/local/apache/http/apps/alchemy/editors/annotation_submit.html It would be great to also have the referer in this line. Thanks, - Dave |
|
|||
|
Use CustomLog with format "combined". combined is defined in the
default httpd.conf. Should it not be defined in your file then you have it here: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined As you can see the referer is also logged in this format. The CustomLog line could then look like this: CustomLog logs/access_log common T. |