Here is my /etc/lighttpd/lighttpd.conf. Hope it helps. (EOL = End Of Line???)
BTW, I've compiled it from the latest version lighttpd-1.4.18 though.
BTW, I've installed MySQL + Lighttpd + php5 + ruby/rails so far. For Rails, can only use local gem installation (gem install rails hangs for 3 hours (with message like bulk updating gem index) ... ).
And now want to install webcam but dunno how.. :D
## be nice and keep it at lighttpd # server.tag = "lighttpd"
## deny access the file-extensions # # ~ is for backupfiles from vi, emacs, joe, ... # .inc is often used for code includes which should in general not be part # of the document-root url.access-deny = ( "~", ".inc" )
## # which extensions should not be handle via static-file transfer # # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".rb", "~", ".inc" )
######### Options that are good to be but not neccesary to be changed #######
## bind to port (default: 80) #server.port = 81
## bind to localhost (default: all interfaces) #server.bind = "127.0.0.1"
## error-handler for status 404 #server.error-handler-404 = "/error-handler.html" #server.error-handler-404 = "/error-handler.php"
## to help the rc.scripts #server.pid-file = "/var/run/lighttpd.pid"
###### virtual hosts ## ## If you want name-based virtual hosting add the next three settings and load ## mod_simple_vhost ## ## document-root = ## virtual-server-root + virtual-server-default-host + virtual-server-docroot ## or ## virtual-server-root + http-host + virtual-server-docroot ## #simple-vhost.server-root = "/srv/www/vhosts/" #simple-vhost.default-host = "www.example.org" #simple-vhost.document-root = "/htdocs/"
## ## Format: <errorfile-prefix><status-code>.html ## -> ..../status-404.html for 'File not found' #server.errorfile-prefix = "/usr/share/lighttpd/errors/status-" #server.errorfile-prefix = "/srv/www/errors/status-"
#### include #include /etc/lighttpd/lighttpd-inc.conf ## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf" #include "lighttpd-inc.conf"
#### include_shell #include_shell "echo var.a=1" ## the above is same as: #var.a=1