[squid-users] referer_log doesn't seem to work in a reverse proxy

From: Peter Kassies <p.kassies@dont-contact.us>
Date: Wed, 16 May 2001 16:53:47 +0200

Hello all,

We are using squid 2.4 as a reverse proxyserver. We have two reverse
proxyservers and are using round robin dns to spread the load over these two
reverse proxies. It works great, so far I can see the webserver workload is
reduced by 40-60%.

Now our webmaster cannot use the logfile from the webserver, because it only
shows requests from both the reverse proxyservers.

I've enabled emulate_httpd_log so that it doesn't log in the squid format,
but in a the http format. It will be easier for the webmaster to load these
logs into the analysis program. squid2common.pl also does a great job, for
the logfiles which weren't in the http format yet.

I've recompiled the squid source with:
./configure --enable-removal-policies="lru" --enable-snmp --disable-internal
-dns
--enable-useragent-log --enable-referer-log

And I have enabled http_referer and useragent_log in the squid.conf file:
useragent_log /usr/local/squid/logs/useragent_log
referer_log /usr/local/squid/logs/referer_log

So far so good. Stopped and started squid daemon. Checked it with ./squid
NCd1 no errors.
Now I can see the following files in /usr/local/squid/logs

-rw-r--r-- 1 nobody nogroup 4078432 May 16 16:39 access.log
-rw-r--r-- 1 nobody nogroup 12565 May 16 16:23 cache.log
-rw-r--r-- 1 nobody nogroup 0 May 16 15:25 referer_log
-rw-r--r-- 1 root nogroup 6 May 16 15:25 squid.pid
-rw-r--r-- 1 nobody nogroup 2541711 May 16 16:38 store.log
-rw-r--r-- 1 nobody nogroup 515716 May 16 16:39 useragent_log

My problem is that the referer_log file is still at 0 bytes. This cannot be
right. I have created a site with a clickthrough possibility, and it isn't
logging the http_referer.

Has anybody had simular experiences? Or can point me in the right direction?

Thanks,

Peter Kassies
Received on Wed May 16 2001 - 08:53:44 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:08 MST