how to detect what caused the 404, 403?

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-19-2005
laredotornado@zipmail.com
 
Posts: n/a
Default how to detect what caused the 404, 403?

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

  #2 (permalink)  
Old 10-19-2005
Tim
 
Posts: n/a
Default Re: how to detect what caused the 404, 403?

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.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0