Skip to content

Instantly share code, notes, and snippets.

@meskarune
Forked from thomasbilk/gunicorn_lighttpd.conf
Created September 7, 2012 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save meskarune/3666443 to your computer and use it in GitHub Desktop.
Save meskarune/3666443 to your computer and use it in GitHub Desktop.
gunicorn lighttpd conf file
server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_extforward",
"mod_rewrite",
#"mod_fastcgi",
"mod_proxy",
"mod_redirect" )
server.document-root = "/path/to/root"
server.port = 3000
mimetype.assign = (
".html" => "text/html",
".htm" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png",
".css" => "text/css",
".js" => "text/javascript",
"" => "text/plain",
)
$HTTP["url"] !~ "^/media/" {
proxy.server = ( "" => ( (
"host" => "127.0.0.1",
"port" => 8000
) ) )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment