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