Playing with
nginx. Here are some random hints:
1.) nginx with php:
/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f "/usr/bin/php-cgi -c /etc/php5/cgi/php-nginx.ini" -P /var/run/fcgi-php.pid
2.) Deny access to .svn directories:
location ~ \.svn { deny all; }
3.) rewrite urls
if ( !-f $request_filename ) {
rewrite ^/images/([A-Za-z]+)\/(.*)$ /images/default/$2 break;
}
The rewrite rule will redirect /images/bar/foo.png if it does not exists to /images/default/foo.png
spwan-fcgi is included in the lighttpd package if you are using lenny. On squeeze and sid spawn-fcgi is an standalone package!