This is an old version of this answer!
Return to the current answerHello,
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 -
You also need to make sure the following line is not commented in the server.modules section of your main lighttpd config file above -
The rewrite rules -
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
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
You also need to make sure the following line is not commented in the server.modules section of your main lighttpd config file above -
[...]
"mod_rewrite",
[...]
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 3:43pm





