Re: [squid-users] leaving each log file per domain at squid

From: Henrik Nordstrom <[email protected]>
Date: Mon, 23 Oct 2006 11:30:32 +0200

mån 2006-10-23 klockan 07:08 +0000 skrev Monty Ree:
> > > I have setup squid 2.6 for reverse proxy about several domains.
> > > So I would like to leave each log messages to separate files per
> > > cache_peer_domain.
> > > Is there any method to do this?
> >
> >Yes. See access_log and dstdomain acl.
> >
>
> Thanks for your kind answer.
> If I have tow peer domains(www.abc.com, www.xyz.com),
> Can you give me an example to leave a log about www.abc.com?

Here is one way:

acl abc dstdomain www.abc.com
acl xyz dstdomain www.xyz.com

access_log /path/to/xyz.log squid xyz
access_log none xyz
access_log /path/to/abc.log squid abc
access_log none abc
access_log /path/to/access.log squid

Regards
Henrik

Received on Mon Oct 23 2006 - 03:30:39 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST