Forum Moderators: phranque

Message Too Old, No Replies

How to get referer into access_log

when testing mod_rewrite rule with Teleport Pro

         

maggi

9:56 am on Jun 26, 2004 (gmt 0)

10+ Year Member



My goal is to use a rewrite rule which rewrites a static url into a cgi sting.
I want to take the referer from the browser into the string for later user tracking in the shoping script.
The shop is using a mod_rewrite static url aproach and I am wondering why there are only some referers in access_log. Thats the reason I want to test and understand the mechanism how referers get into the log.

The access_log of my Apache 1.3.26 is:
CustomLog /var/log/httpd/access_log common

It shows no referer entry when I call from [virtServerA.tld...] to the other server
[virtServerB.tld...]
Neither with Teleport Pro 129.1972, where I might introduce a referer string into the spider.
Which method/tool enables me to force a referrer string into the access_log?
Or is there a specific Apache setting?
Thanks, Maggi

whoisgregg

5:23 pm on Jun 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try using combined log format:

CustomLog /var/log/httpd/access_log combined

Also, not all browsers send the referrer information. It's just not a bit of info that is required. :(

As far as mod_rewrite, you probably will get the best help from the folks in the Apache web server forum [webmasterworld.com]. :)