Apache:
SetEnvIfNoCase Request_URI "\.(gif|jpe?g|png|htc|css|js|ico)$" skiplog
CustomLog "/var/log/httpd/access.log" combined env=!skiplogLighttpd:
$HTTP["url"] =~ "\.(gif|jpe?g|png|htc|css|js|ico)$" {
accesslog.filename = "/dev/null"
}
lighttpddisable logging of images in access logSubmitted by sandip on Wed, 12/15/2010 - 17:15Apache: SetEnvIfNoCase Request_URI "\.(gif|jpe?g|png|htc|css|js|ico)$" skiplogLighttpd: $HTTP["url"] =~ "\.(gif|jpe?g|png|htc|css|js|ico)$" {lighttpd redirect to external url if file not foundSubmitted by sandip on Mon, 06/28/2010 - 14:57Below is a rewrite/redirect rule using url.rewrite-[repeat]-if-not-file similar to Apaches' "!-f" RewriteRule. # Redirect to external url if image file not found»
Deny access to .htaccess files in lighttpdSubmitted by sandip on Sun, 06/27/2010 - 21:36In lighttpd you can use mod_access to deny files starting with a certain expression, such as hidden dot files. (example: .htaccess or .svn) # Deny access to hidden files»
Munin stats for apache and lighttpdSubmitted by sandip on Wed, 09/02/2009 - 16:49Get status of apache (80) and lighttpd (81) on different ports: This is done at the nodes.
<Location /server-status> $HTTP["remoteip"] == "127.0.0.1" {[apache*] * Test with: ports="80 83" /etc/munin/plugins/apache_processeslighttpd idle process will be a straight line as total of busy and idle process is always the same when drawn as STACK, . To change this to LINE1: At the host, edit "/etc/munin/munin.conf" and add the below line to the corresponding host: apache_processes.idle81.draw LINE1»
Lighttpd client side optimizationSubmitted by sandip on Wed, 09/02/2009 - 12:06
Enable mod_expire and mod_compress. Expire static files set for 3 days: $HTTP["url"] =~ "\.(js|css|gif|jpg|png|ico|txt|swf|html|htm)$" { expire.url = ( "" => "access 3 days" ) }compress.cache-dir = "/var/cache/lighttpd/compress/"#!/bin/bashmkdir -p /var/cache/lighttpd/compress |
User loginRecent blog posts
Who's onlineThere are currently 0 users and 6 guests online.
|