-
-
Save hqman/1592769 to your computer and use it in GitHub Desktop.
gunicorn lighttpd conf file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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