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.
More Information
For more information about web server log file formats, see the following.
Please note: the information on this page applies to ITS web hosting plans. It may or may not apply to other environments. If you are looking for a feature described here, or better support from your hosting provider, please consider hosting your site with ITS!
Copyright © 1996-2024, Integrated Technical Solutions, Inc., all rights reserved. See Terms/Legal for trademarks, copyright, and terms of use.
Naperville, IL 60563
fax 630.420.2771