





 
 
 
 
 
 
 
 
 
 
 
 
|
Setting the Web Server Log Formats
By default your Virtual Server web server logs 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 format to the Common Log Format 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
# IF UNCOMMENTING THE FOLLOWING, PUT THE FOLLOWING
# TWO LINES ALL ON ONE LINE
# 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
After making the changes above, the web server will log access, agent,
and referer information to separate log files, in the Common Log Format.
More Information
You can also define your own log format by modifying the LogFormat
directive above. See
Module mod_log_config at the Apache Web site for more details.
Turn off Log Files
See this document for more information
on turning off your web server log files.
|
|