Skip to content

Instantly share code, notes, and snippets.

@happz
Created May 16, 2012 16:14
Show Gist options
  • Save happz/2711759 to your computer and use it in GitHub Desktop.
Save happz/2711759 to your computer and use it in GitHub Desktop.
$HTTP["host"] == "osadnici-test3.happz.cz" {
dir-listing.activate = "enable"
server.document-root = "/home/happz/settlers/"
accesslog.use-syslog = "disable"
static-file.exclude-extensions = ()
$HTTP["url"] =~ "^/static/common.css$" {
server.document-root = "/home/happz/settlers/src/"
expire.url = (
"" => "access plus 2 weeks"
)
} else $HTTP["url"] =~ "^/static/scripts/jquery/.*$" {
server.document-root = "/home/happz/settlers/src/"
expire.url = (
"" => "access plus 2 weeks"
)
} else $HTTP["url"] =~ "^/static/scripts/.*$" {
server.document-root = "/home/happz/settlers/src/"
expire.url = (
"" => "access plus 2 weeks"
)
} else $HTTP["url"] =~ "^/static/.*$" {
server.document-root = "/home/happz/settlers/src/"
dir-listing.activate = "enable"
expire.url = (
"" => "access plus 2 weeks"
)
} else $HTTP["url"] == "/favicon.ico" {
url.redirect = ("^/(.*)" => "http://osadnici.happz.cz/static/$1")
expire.url = (
"" => "access plus 2 weeks"
)
} else $HTTP["url"] =~ "^/doc/.*$" {
server.document-root = "/home/happz/settlers/src/"
dir-listing.activate = "enable"
} else $HTTP["url"] =~ "^.*$" {
server.errorfile-prefix = "/home/happz/settlers/static/status/"
proxy.balance = "hash"
proxy.server = (
"" => ((
"host" => "127.0.0.1",
"port" => 8081
))
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment