Local Business Reviews Application on a Ruby on Rails Platform

Ruby on Rails Tutorials & Code Examples

Creating & Configuring a Virtual directory Alias in Lighttpd

To configure a virtual directory in Lighttpd , you add an 'alias.url' entry to your lighttpd.conf eg:

lighttpd.conf:

alias.url = ( "/rubyonrails/" => "/shared/published/blogger/" )

Which you would notice is very similar to the Apache Virtual Directory Configuration:

Apache httpd.conf:

    Alias /icons/ "C:/Apache/icons/"


Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

If you installed Lighttpd without mod_alias, you will probably see:

lighttpd.conf:

2007-01-02 14:45:33: (server.c.871) WARNING: unknown config-key: alias.url (ignored)

This can be fixed by adding a 'mod_alias' entry to your 'server.modules' entry in the lighttpd.conf eg:

lighttpd.conf:

server.modules = ("mod_alias", "mod_rewrite", "mod_redirect")

Labels: , , ,