$HTTP["host"] == "example.com" {
server.document-root = "/path/to/document/root/"
dir-listing.activate = "disable"
url.access-deny = ( "~", ".inc", ".git" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".~", ".pyc", ".py", ".db", ".swp" )
url.rewrite-once = (
"^/favicon\.ico$" => "/s/i/favicon.ico",
)
$HTTP["url"] !~ "^/s/(.*)$" {
proxy.server = (
"" => (
"tornado" => (
"host" => "127.0.0.1",
"port" => 9888
))
)
}
}
blog comments powered by Disqus