Skip to content

Commit 0569835

Browse files
author
Nicolas Cornu
committed
Add a configuration file for lighttpd
1 parent 0abcd65 commit 0569835

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
server.modules = (
2+
"mod_fastcgi",
3+
"mod_rewrite",
4+
"mod_access",
5+
)
6+
7+
server.document-root = "/path/to/speedcenter/"
8+
9+
fastcgi.server = (
10+
"/django" => (
11+
"main" => (
12+
"socket" => "/path/to/a/sock/file",
13+
"check-local" => "disable",
14+
)
15+
)
16+
)
17+
18+
alias.url = (
19+
# /static/admin depends of distribution.
20+
"/static/admin" => "/usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin",
21+
"/static" => "/path/to/static",
22+
)
23+
24+
url.rewrite-once = (
25+
"^(/static.*)$" => "$1",
26+
"^(/django/.*)$" => "$1",
27+
"^(/.*)$" => "/django$1",
28+
)
29+
30+
mimetype.assign = ( ".png" => "image/png",
31+
".css" => "text/css",
32+
".js" => "text/javascript"
33+
)

0 commit comments

Comments
 (0)