Mailinglist Archive: opensuse (1420 mails)

< Previous Next >
Re: [opensuse] FAILED: apache log full of wpad.dat
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Mon, 20 Jan 2014 08:47:21 +0100
  • Message-id: <lbikal$6ku$2@saturn.local.net>
Patrick Shanahan wrote:

* Per Jessen <per@xxxxxxxxxxxx> [01-19-14 13:11]:
Patrick Shanahan wrote:
[...]
Spoke too soon, excluding "wpad.dat" log entries did/does not work!

but the conf file does not abort apache2.

ps: where are apache log files defined besides:
/etc/apache2/sysconfig.d/global.conf
/etc/apache2/conf.d/awstats.conf
/etc/sysconfig/apache2
/etc/awstats/awstats.web.conf

Put the setenvif statement in a global config, e.g. httpd.conf. Then
add the env=!dontlog to every customlog statement where you don't
want wpad.dat.

added senenvif statement to new file /etc/apache2/httpd.conf.local and
include statement in etc/sysconfig/apache2 for httpd.conf.local.

put env=!dontlog into /etc/apache2/conf.d/awstats.conf and
/etc/awstats/awstats.web.conf

/etc/apache2/sysconfig.d/global.conf is generated when apache2 starts
or restarts.

In the 'setenvif', maybe remove the backslash or add a 2nd one.
Without the backslash, the regex becomes a little 'wider', but that
can be fine-tuned later.

doesn't appear necessary (atm).

this appears to stop wpad.dat entries into access_og which is not what
I have configured. Nowhere do I have access_log configured but it is
still being generated and awstats.log is full of wpad.dat entries :^(

Where would access_log be defined besides
/etc/apache2/conf.d/awstats.conf /and etc/sysconfig/apache2?

Quite often in /etc/apache2/vhosts.d/*.conf if you have virtual hosts.
Otherwise grep for it.



--
Per Jessen, Zürich (0.0°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