Tag: apache
-
Apache SetEnvIf Logical AND with Two Variables
In trying to adjust the method of logging in Apache, it was found logical to have the configuration perform an AND on two variables to validate one format vs another. I had not found much detail on this, until making my way to: http://stephane.lesimple.fr/blog/2010-01-28/apache-logical-or-and-conditions-with-setenvif.html. From the page archived, I had the following: CustomLog /var/log/apache2/loopback_posts.log combined…
-
Leverage Browser Caching in .htaccess File
Leverage browser caching The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources: With a note of: (expiration not specified) To deal with this, I added the following to my .htaccess file: <FilesMatch “\.(ico|jpg|jpeg|png|gif|js|css|swf|woff|ICO|JPG|JPEG|PNG|GIF|JS|CSS|SWF|WOFF)$”> <IfModule mod_expires.c> ExpiresActive on ExpiresDefault “access plus 30…
-
An inside view as to what apache has going on
A friend pointed me to this as an option, when trying to find out exactly what is going on with apache, you can run this: ps auxw | egrep “sbin/apache|httpd” | awk ‘{print”-p ” $2}’ | xargs strace “This one-liner will use strace to attach to all of the currently running apache processes output and…