logo

This is an old version of this answer!

Return to the current answer
Hello,

I just did a test setup of wordpress with lighttpd with PHP and MySQL on a VPS with CentOS 5.3

I added the following to the default lighttpd config file -

/etc/lighttpd/lighttpd.conf


The rewrite rules -

url.rewrite-once = (
"^/(wp-.+).*/?" => "$0",
"^/(sitemap.xml)" => "$0",
"^/(xmlrpc.php)" => "$0",
"^/keyword/([A-Za-z_0-9\-]+)/?$" => "/index.php?keyword=$1",
"^/.*?(\?.*)?$" => "/index.php$1"
)


This is when you are hosting a single site with the default virtual host. If you are hosting multiple sites, you need to put this code in the respective file for your virtual host. Also, this code assumes that the blog is in the root directory of the virtual host.

The permalink settings are similar to what you use here - http://exot.boo.sk/permalinks.jpg

Also, I installed and enabled the Hyper Cache plugin, and everything is working fine. You can see this in action here -
http://72.9.238.114/

Regards

Arania Jain | 01/19/10 at 1:52pm

This is an old version of this answer!

Return to the current answer