We often recommend to set lighttpd in front of apache to handle http requests (more about http://www.mysqlperformanceblog.com/2006/05/21/speedup-your-lamp-stack-with-lighttpd/ ) , redirect dynamic requests to apache and handle static files by itself. I just gathered step-by-step instruction how to do that in 10 minutes, as it may be not so obvious.
- Of course you need lighttpd by itself, it's available on http://www.lighttpd.net/download
- You may want pcre-devel packet, which allows to use regular
expressions in lighttpd.conf. For CentOS boxes we just run
yum install pcre-devel - Take sample config file
lighttpd-1.4.XX/doc/lighttpd.confand put to/etc/lighttpd/lighttpd.conf - Create directory to store log files, e.g. …