Web Servers on Unix and Linux - how to detect what caused the 404, 403?

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > October 2005 > how to detect what caused the 404, 403?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to detect what caused the 404, 403?
laredotornado@zipmail.com

2005-10-24, 10:31 am

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

Tim

2005-10-24, 10:31 am

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.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com