Browse files

Merge pull request #129 from aldebaran/lighttpd

Add a configuration file for lighttpd
  • Loading branch information...
2 parents ec36ba7 + 0569835 commit dfb560ad915cb68d874936198b192f1f12962d89 @tobami committed Oct 8, 2012
Showing with 33 additions and 0 deletions.
  1. +33 −0 sample_project/deploy/lighttpd-speedcenter.conf
View
33 sample_project/deploy/lighttpd-speedcenter.conf
@@ -0,0 +1,33 @@
+server.modules = (
+ "mod_fastcgi",
+ "mod_rewrite",
+ "mod_access",
+)
+
+server.document-root = "/path/to/speedcenter/"
+
+fastcgi.server = (
+ "/django" => (
+ "main" => (
+ "socket" => "/path/to/a/sock/file",
+ "check-local" => "disable",
+ )
+ )
+)
+
+alias.url = (
+ # /static/admin depends of distribution.
+ "/static/admin" => "/usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin",
+ "/static" => "/path/to/static",
+)
+
+url.rewrite-once = (
+ "^(/static.*)$" => "$1",
+ "^(/django/.*)$" => "$1",
+ "^(/.*)$" => "/django$1",
+)
+
+mimetype.assign = ( ".png" => "image/png",
+ ".css" => "text/css",
+ ".js" => "text/javascript"
+)

0 comments on commit dfb560a

Please sign in to comment.