Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Do not write HEAD request to log |
|
Author |
|
aajkaal
Joined: 16 Dec 2010 Posts: 2 Location: US
|
Posted: Thu 16 Dec '10 17:54 Post subject: Do not write HEAD request to log |
|
|
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
|
Posted: Thu 16 Dec '10 18:13 Post subject: |
|
|
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
|
Posted: Thu 16 Dec '10 18:46 Post subject: Worked |
|
|
Thanks for your quick help |
|
Back to top |
|
|
|
|
|
|