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

Find

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 […]

Read More…

bind lighttpd to one ip address

I want to bind lighttpd on IP address 76.76.18.20, so i can use other IP’s for Apache, Apache have “Listen” option to bind apache to specific IP address.

Find

Replace with

See lighttpd […]

Read More…

Auto restart lighttpd on crash

To restart lighttpd if it went down or crashed, create a file check_lighttpd.sh

With the following content

Make it executable

Create a file up.html on web root of your web site

Now set a cronjob to run every 5 minutes

Add following cronjob

See lighttpd […]

Read More…