If I use Lighttpd as webserver, how can I use caching plugin like w3 total cache or wp super cache? Need your help for configuring lighttpd.
The following script takes the url that was asked from the client. It checks whether there is a fresh version of a static HTML page on the cache and if yes, it servers that. If the file does not exist at all or the it is expired(I check its modification date) then the request is forwarded to the PHP fcgi so that it can be freshly served.
This is for Wp Super Cache.
The lighttpd host configuration should now look somewhat similar to this:
The WP Super Cache plugin developer has the Nginx rewrite rules for his plugin on his blog: http://ocaoimh.ie/2009/11/23/wordpress-nginx-wp-super-cache/