lighttpd unleashed - part one 2

Posted by jan Wed, 24 Aug 2005 09:11:24 GMT

From time to time we write code faster than documention. This basicly means that sometimes small gems are hidden and unknown to most users.

This time we want to put some focus on the new commandline options in lighttpd 1.4.0 and higher.

$ lighttpd -h
lighttpd-1.4.1 (ssl) (Aug 23 2005 16:37:21) - a light and fast webserver
usage:
 -f <name>  filename of the config-file
 -p         print the parsed config-file in internal form, and exit
 -t         test the config-file, and exit
 -D         don't go to background (default: go to background)
 -6         use IPv6
 -v         show version
 -h         show this help

The new options are -p and -t. They will help you to check that is everything is ok, before you start lighttpd with the new configuration.

$ lighttpd -t -f ./lighttpd.conf
Syntax OK

Especially if you start to use the the new features of lighttpd 1.4.0 like includes and expressions the print out of the parsed configuration will help you to see if everything really worked out as planed.

Trackbacks

Use the following link to trackback from your own site:
http://blog.lighttpd.net/articles/trackback/15

Comments

Leave a response

  1. Mark Wed, 30 Nov 2005 09:02:03 GMT
    I'm obviously late to the game just moving to 1.4.8 from 1.3.16.. but I'm nevertheless thrilled to see -t in 1.4.x. :) Thx!
  2. free music ringtone Sun, 18 Jun 2006 15:35:56 GMT
    Unusual song!
Comments