Book Image

Lighttpd

By : Andre Bogus
Book Image

Lighttpd

By: Andre Bogus

Overview of this book

Table of Contents (20 chapters)
Lighttpd
Credits
About the Author
About the Reviewer
Preface
HTTP Status Codes

Starting Lighttpd by Hand


Lighttpd can be started without the help of a startup script. The path to the Lighttpd executable depends on your system and installation. Given that it is in your path, we can start Lighttpd by using the following command:

lighttpd -f [full path to your config file]

With some distributions (especially some Windows builds), the -f option will be hardcoded, so we cannot and need not supply the configuration file path. When in doubt, refer to the documentation of the installation package.

There are also other command line options that are worth taking a look at:

Option

What Lighttpd does

-m [directory]

Loads modules from [directory], and proceeds to serve web pages (you will still need to give the configuration file path with -f).

-p

Pretty prints the configuration and exits.

-t

Tests the lighttpd.conf file for syntax errors and exits—this is useful before restarting Lighttpd and after changing the configuration to make sure no downtime will ensue.

-D

No-Daemon...