From 4e00f585cdd34edd00d5543d1ce82dbd539f351b Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sun, 30 Mar 2014 14:19:42 +0000 Subject: [PATCH] Added lighttp config file --- .gitignore | 1 + web/lighttp.example.conf | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 web/lighttp.example.conf diff --git a/.gitignore b/.gitignore index 036e21e..4b0b124 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ graph.json mapper-confs/* conf_sh.py +lighttp.conf diff --git a/web/lighttp.example.conf b/web/lighttp.example.conf new file mode 100644 index 0000000..97dd2e9 --- /dev/null +++ b/web/lighttp.example.conf @@ -0,0 +1,22 @@ +server.modules += ( + "mod_fastcgi", + "mod_rewrite", +) + +fastcgi.server += ("/fc00.fcgi" => + (( + "socket" => "/tmp/fc00-fcgi.sock", + "bin-path" => "/path/to/fc00/web/fc00.fcgi", + "check-local" => "disable", + "max-procs" => 1 + )) +) + +alias.url += ( + "/static/" => "/path/to/fc00/web/static/" +) + +url.rewrite-once += ( + "^(/static($|/.*))$" => "$1", + "^(/.*)$" => "/fc00.fcgi$1" +)