Skip to content

Instantly share code, notes, and snippets.

@torus
Created September 1, 2009 04:59
Show Gist options
  • Save torus/178909 to your computer and use it in GitHub Desktop.
Save torus/178909 to your computer and use it in GitHub Desktop.
===================================================================
RCS file: RCS/lighttpd.conf,v
retrieving revision 1.1
diff -u -r1.1 lighttpd.conf
--- lighttpd.conf 2009/09/01 04:53:35 1.1
+++ lighttpd.conf 2009/09/01 04:19:15
@@ -2,7 +2,7 @@
#
# use it as a base for lighttpd 1.0.0 and above
#
-# $Id: lighttpd.conf,v 1.1 2009/09/01 04:53:35 toru Exp toru $
+# $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $
############ Options you really have to take care of ####################
@@ -25,7 +25,7 @@
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
-# "mod_cgi",
+ "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
@@ -36,10 +36,10 @@
## A static document-root. For virtual hosting take a look at the
## mod_simple_vhost module.
-server.document-root = "/srv/www/htdocs/"
+server.document-root = "/home/toru/local/srv/www/htdocs/"
## where to send error-messages to
-server.errorlog = "/var/log/lighttpd/error.log"
+server.errorlog = "/home/toru/local/var/log/lighttpd/error.log"
# files to check for if .../ is requested
index-file.names = ( "index.php", "index.html",
@@ -115,7 +115,7 @@
# server.tag = "lighttpd"
#### accesslog module
-accesslog.filename = "/var/log/lighttpd/access.log"
+accesslog.filename = "/home/toru/local/var/log/lighttpd/access.log"
## deny access the file-extensions
#
@@ -132,12 +132,12 @@
# 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" )
+static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".cgi" )
######### Options that are good to be but not neccesary to be changed #######
## bind to port (default: 80)
-#server.port = 81
+server.port = 8181
## bind to localhost (default: all interfaces)
#server.bind = "127.0.0.1"
@@ -224,6 +224,7 @@
#cgi.assign = ( ".pl" => "/usr/bin/perl",
# ".cgi" => "/usr/bin/perl" )
#
+cgi.assign = ( ".cgi" => "")
#### SSL engine
#ssl.engine = "enable"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment