Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Tell Apache Not to Log NixStats & certain requests in access_log

mehargagsmehargags Member
edited August 2016 in Help

On a Debian 8 VestaCP server, I wish Apache to NOT LOG visits by Nixstats and Google bot.

This is the entry I see
1xx.6x.x3.xx4 - - [24/Aug/2016:16:27:02 -0400] "HEAD / HTTP/1.0" 200 303 "-" "Mozilla/5.0+(compatible; nixStatsRobot/1.0; http://www.nixstats.com/)"

I understand that I need to put such lines in the apache global conf.

SetEnvIf Remote_Host "bla.example.com$" dontlog

SetEnvIf User_Agent "(MSIE)" dontlog

so which conf shall I write in? Since I need it GLOBALLY for all domains hosted. I presume it is
/etc/apache2/apache2.conf
correct ? There is no CustomLog line in the conf as I read on some forums...
What exactly will be the entry string to exclude nixStatsRobot ?

Sign In or Register to comment.