By default your Web Server Log Files
are in the Combined Log Format. All access, agent, and referer information
is logged to the ~/www/logs/access_log file.
You can change the web
server log file format to the Common Log Format (separate log files
for the access, agent, and referer data) by modifying your web server
configuration file (~/www/conf/httpd.conf) like this:
# common log format
LogFormat "%h %l %u %t "%r" %>s %b"
# combined log format
#LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i""
# The location of the access logfile
# If this does not start with /, ServerRoot is prepended to it.
TransferLog logs/access_log
# If you would like to have a separate agent and referer logfile
# uncomment the following directives.
RefererLog logs/referer_log
AgentLog logs/agent_log
You can also define your
own log format by modifying the LogFormat directive
above. After making the changes above, be sure to Restart
Your Web Server.
|