Introduction

The goal is to setup multiple rails applications using Lighttpd 1.5, parallel to working Apache2 (we'll keep it as the main server proxying requests to lighttpd with the help of mod_proxy). My setup is openSUSE 10.1 with Plesk 8.1. The role of Plesk is minor in this post, I will just follow the structure of the directories which it implies. I based my configuration on IanWhite, the core of which is a nice ruby script, which basically looks through your vhosts (including subdomains), and gathers all the lighttpd.conf files, appending them to the main lighttpd.conf file located in /etc/lighttpd. The article is brilliant, but it wouldn't work with lighty 1.5 due to the fact that the famous mod_fastcgi of lighty is no longer there, leaving us, as option, the brand-new mod_core_proxy together with ExternalSpawning?.

I didn't succeed to post the whole article here, maybe because the example links in it have been counted as external links => spam. I hope, the link to the article itself can stay here http://osx.ixland.com/blog/2007/04/11/multiple-rails-with-lighttpd-15-apache-mod_proxy-and-plesk-81/