Skip to content

Instantly share code, notes, and snippets.

@Arbow
Created February 27, 2009 06:34
Show Gist options
  • Save Arbow/71323 to your computer and use it in GitHub Desktop.
Save Arbow/71323 to your computer and use it in GitHub Desktop.
server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_compress",
"mod_fastcgi",
"mod_rewrite"
)
## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root = "/home/arbow/workspace/Site/"
## where to upload files to, purged daily.
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
## where to send error-messages to
server.errorlog = "/var/log/lighttpd/error.log"
## Use the "Content-Type" extended attribute to obtain mime type if possible
# mimetype.use-xattr = "enable"
#### accesslog module
accesslog.filename = "/var/log/lighttpd/access.log"
## bind to port (default: 80)
server.port = 8080
## bind to localhost only (default: all interfaces)
# server.bind = "localhost"
## to help the rc.scripts
server.pid-file = "/var/run/lighttpd.pid"
### only root can use these options
#
# chroot() to directory (default: no chroot() )
#server.chroot = "/"
## change uid to <uid> (default: don't care)
server.username = "www-data"
## change uid to <uid> (default: don't care)
server.groupname = "www-data"
static-file.exclude-extensions = ( ".py", ".php", ".pl", ".fcgi" )
fastcgi.server = ( "/main.py" =>
(
("socket"=>"/tmp/fastcgi.socket-0", "check-local" => "disable"),
("socket"=>"/tmp/fastcgi.socket-1", "check-local" => "disable"),
("socket"=>"/tmp/fastcgi.socket-2", "check-local" => "disable"),
("socket"=>"/tmp/fastcgi.socket-3", "check-local" => "disable"),
("socket"=>"/tmp/fastcgi.socket-4", "check-local" => "disable"),
("socket"=>"/tmp/fastcgi.socket-5", "check-local" => "disable"),
("socket"=>"/tmp/fastcgi.socket-6", "check-local" => "disable"),
("socket"=>"/tmp/fastcgi.socket-7", "check-local" => "disable"),
("socket"=>"/tmp/fastcgi.socket-8", "check-local" => "disable"),
("socket"=>"/tmp/fastcgi.socket-9", "check-local" => "disable"),
))
url.rewrite-once = (
"^/favicon.ico$" => "/static/favicon.ico",
"^/static/(.*)$" => "/static/$1",
"^/(.*)$" => "/main.py/$1",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment