Lighttpd Working!
Yay! I got typo working with lighttpd and fcgi. Here’s what I did in my server environment.
- Installed typo
- installed the latest tarball from http://rubyforge.org/projects/rubygems/
gem install rails
svn checkout svn://leetsoft.com/typo/trunk typo
- Installed fcgi and lighttpd
apt-get install libfcgi-ruby1.8 libpcre3-dev
note: pcre needed for mod_rewrite- downloaded latest tarball (1.4.4) for lighttpd
- Configuration
- Copied the script into my script/ in the typo rails directory
chmod +x script/light_rails
- began lighttpd with
script/light_rails -b 72.0.101.155 -a typo -p 80
- modified script/light_rails to use mod_status and mod_simple_vhost
Make sure to modify your dns records so that your virtual host is recognized by everyone’s browsers. Otherwise you’ll get $url could not be found. Please try again.
from firefox.
I also used the following resources:
1. rails wiki – search for lighttpd
2. Naturally lighttpd
3. http://hieraki.simplicio.com/read/chapter/1