lighttpd mod alias

mod_alias lighttpd module allow you to map urls to file system. For example, you need /mrtg show /var/www/mrtg

You need to first enable mod_alias in lighttpd.conf


and remove the comment # on “mod_alias” line. It should look like

To add alias, add following in lighttpd.conf

If you need to add more, just use

Alias will allow you to access files/programs in the folder with url http://yourdomain-or-ip/mrtg/

See Lighttpd

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *