| Configure Lighttpd Alias (mod_alias) |
|
|
|
| How To - Lighttpd | |||
| Written by Christian Foronda | |||
| Wednesday, 17 March 2010 17:13 | |||
|
This lighttpd module provides for mapping different parts of the host filesystem in the document tree. You can use it for mapping various directories. For example cgi-bin directory mapped to /var/lib/cgi-bin. The alias module is used to specify a special document-root for a given url-subset.. Configuration: Open your lighttpd configuration file: # vi /etc/lighttpd/lighttpd.conf Append the add mod_ alias to list of server modules: server.modules = ( "mod_alias" ) Examples: Add cgi-bin alias for domain theos.in: alias.url = ( "/cgi-bin/" => "/home/lighttpd/theos.in/cgi-bin/" ) Browse all documents installed at /usr/share/doc/ directory with following alias: alias.url = ( "/docs/" => "/usr/share/doc/" ) alias.url += ( "/stats/" => "/home/apps/http/webalizer/" ) Open a browser and type url http://server.ip/docs/ or http://your-domain.com/docs/ Similar articles
|
|||
| Last Updated on Wednesday, 17 March 2010 18:24 |


