Mailinglist Archive: opensuse (1420 mails)

< Previous Next >
Re: [opensuse] apache log full of wpad.dat
* Per Jessen <per@xxxxxxxxxxxx> [01-18-14 11:27]:
Patrick Shanahan wrote:

* Per Jessen <per@xxxxxxxxxxxx> [01-18-14 03:58]:
Patrick Shanahan wrote:
* Cristian Rodríguez <crrodriguez@xxxxxxxxxxxx> [01-17-14 19:12]:
[...]
what's your question ? See
http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol for
details on "wpad.dat"

My apache2 logs are filling with *many* wpad.dat entries. How can
I stop them or filter them out?

Something like this might help:

SetEnvIf Request_URI wpad\.dat dontlog=1
CustomLog file format env!=dontlog

in: /etc/apache2/conf.d/awstats.conf
above: CustomLog /var/log/apache2/awstats.log combined

doesn't allow apache2 to restart, but...
as one line:
SetEnvIf Request_URI wpad\.dat dontlog=1 CustomLog file format
env!=dontlog

appears to be working. Will advise shortly.

You really need two lines:

SetEnvIf Request_URI wpad\.dat dontlog=1
CustomLog file format env=!dontlog
^^^^^^^^^^^

Don't forget to amend 'file' and 'format' according to your needs. Also
note the different positioning of the '!'.

Then I need to replace the present line:
CustomLog /var/log/apache2/awstats.log combined
with:
SetEnvIf Request_URI wpad\.dat dontlog=1
CustomLog /var/log/apache2/awstats.log combined env!=dontlog

away atm, will report

tks,
--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535 @ http://linuxcounter.net
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >