logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Do not write HEAD request to log
Author
aajkaal



Joined: 16 Dec 2010
Posts: 2
Location: US

PostPosted: Thu 16 Dec '10 17:54    Post subject: Do not write HEAD request to log Reply with quote

I want to ignore the HEAD request and not write to access_log. Thanks in advance.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 16 Dec '10 18:13    Post subject: Reply with quote

Code:

SetEnvIf Request_Method "HEAD" dontlog
CustomLog logs/access_log common env=!dontlog


I think you also should prevent your server for HEAD requests if you have many of them

Code:

<Limit HEAD>
order deny,allow
deny from all
</Limit>
Back to top
aajkaal



Joined: 16 Dec 2010
Posts: 2
Location: US

PostPosted: Thu 16 Dec '10 18:46    Post subject: Worked Reply with quote

Thanks for your quick help
Back to top


Reply to topic   Topic: Do not write HEAD request to log View previous topic :: View next topic
Post new topic   Forum Index -> Apache