1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
server.modules += ("mod_scgi")
server.modules += ("mod_rewrite")
scgi.protocol = "uwsgi"
$HTTP["host"] =~ "paste.example.org" {
server.name = "paste.example.org"
server.document-root = "/srv/bepasty/files"
alias.url += (
"/static/" => "/usr/lib/python3/dist-packages/bepasty/static/",
)
url.redirect += (
"^/$" => "/bepasty/",
)
$HTTP["url"] !~ "^/static" {
scgi.server = (
"/" => (
(
"socket" => "/run/uwsgi/app/bepasty/socket",
"check-local" => "disable"
)
)
)
}
}
|