unrelenting Posted October 28, 2007 Share Posted October 28, 2007 I have Apache running on a Microsoft server. It creates log files just fine but it isn't recording the referrer information. I have played around with this area for awhile so I probably have something wrong. This is what I have set in the httpd.conf file <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 <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 # # 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> [code] [/code] Quote Link to comment https://forums.phpfreaks.com/topic/75099-solved-apache-log-no-referrer-data/ Share on other sites More sharing options...
unrelenting Posted October 28, 2007 Author Share Posted October 28, 2007 Nevermind. I was working in the wrong section. I should have been int he virtual host area. Quote Link to comment https://forums.phpfreaks.com/topic/75099-solved-apache-log-no-referrer-data/#findComment-379900 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.