![]() |
|
![]() | ||
|
Subject:
Modified Apache custom log & httpd.conf . Will it affect performance?
Category: Computers > Operating Systems Asked by: royteo-ga List Price: $2.00 |
Posted:
12 Aug 2006 22:30 PDT
Expires: 11 Sep 2006 22:30 PDT Question ID: 755457 |
To solve the problem of my Apache server log for some domains exceeding the 2GB filesize limit, I've recently added some extra directives to httpd.conf to log images to a separate log. Below is the original entry (CASE 1): CustomLog domlogs/the-domain.com combined Then I've added the "images" directive (CASE 2) SetEnvIfNoCase Request_URI "\.gif$" is_image=gif SetEnvIfNoCase Request_URI "\.png$" is_image=png SetEnvIfNoCase Request_URI "\.jpg$" is_image=jpg CustomLog domlogs/the-domain.com.images combined env=is_image CustomLog domlogs/the-domain.com combined env=!is_image I was considering dumping the images log altogether and set the directive (CASE 3): SetEnvIfNoCase Request_URI "\.gif$" is_image=gif SetEnvIfNoCase Request_URI "\.png$" is_image=png SetEnvIfNoCase Request_URI "\.jpg$" is_image=jpg CustomLog /dev/null combined env=is_image CustomLog domlogs/the-domain.com combined env=!is_image Question 1: I'm worried that CASE 2&3 will consume way more resources because it has to do a REGEX for every query. From resource consumption point of view, how will each of the different cases (CASE 1-3) differ from the others and will the difference be significant enough to be worth paying attention to? Question 2: Is there any other way to make it more efficient? |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |