Mailinglist Archive: opensuse (1420 mails)

< Previous Next >
Re: [opensuse] apache log full of wpad.dat
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Sat, 18 Jan 2014 17:27:04 +0100
  • Message-id: <lbea14$rdr$2@saturn.local.net>
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 '!'.


--
Per Jessen, Zürich (3.2°C)
http://www.hostsuisse.com/ - dedicated server rental in Switzerland.

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups