Introduction
Running lighttpd2
You need two config files for lighttpd, which are usually in the following two locations:
-
/etc/lighttpd2/lighttpd.conf: the main config, see Main Configuration. It can be split into multiple files, see Includes. -
/etc/lighttpd2/angel.conf: the angel config, see Angel Configuration.
The contrib/ directory in the sources includes example config files.
Then start lighttpd2 with:
/usr/sbin/lighttpd2 -c /etc/lighttpd2/angel.conf
The process will not fork into background, you need to do that yourself if you want that.
Our recommended way to run lighttpd2 is runit (have a look at the contrib/service directory).