Hello!
I have a small problem with my Apache configuration. I am trying to
use the "combined" CustomLog directive and it simply wont work and I
have no clue why. I have made sure modules are loaded and that there
isn't another CustomLog overriding the combined one. Here's a paste of
all the information I believe is the most important related to this
topic(everything is sort of default) and sorry for the messy text
structure:
[httpd.conf]
...
LoadModule log_config_module modules/mod_log_config.so <---- OK
...
<IfModule log_config_module>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" %I %O" combinedio
</IfModule>
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog "logs/access.log" common <--- note #
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
CustomLog "logs/access.log" combined
</IfModule>
[/httpd.conf]
Checking to see if the log_config_module is actually loaded:
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin>httpd
-t -D DUMP_MODULES
Loaded Modules:
core_module (static)
win32_module (static)
mpm_winnt_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
asis_module (shared)
auth_basic_module (shared)
authn_default_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dir_module (shared)
env_module (shared)
include_module (shared)
isapi_module (shared)
log_config_module (shared) <------------- OK
mime_module (shared)
negotiation_module (shared)
setenvif_module (shared)
php5_module (shared)
Syntax OK
It still won't log referer/user-agent into the log files (access.log)
:(. What am I missing? I've had it working many years ago on another
machine and I don't remember doing anything out of the ordinary to get
it to work.
Thanks in advance!
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]