diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-01-30 11:23:40 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-02-12 17:50:28 +0000 |
commit | 246e2405b8d76c46b8a49de6fd1311c936e6b852 (patch) | |
tree | 09fc7966dc915170356763b52bb537109c58cf0d /etc/lighttpd.conf | |
parent | a9a7ea2a7ecba39ff663ce79d377e4d5abdb1687 (diff) | |
download | trove-setup-246e2405b8d76c46b8a49de6fd1311c936e6b852.tar.gz |
Reconfigure lighttpd
We now run two separate httpds,
one for morph-cache-server and one for git-httpd.
We do this because we want to run morph-cache-server
as the cache user and git-httpd as the git user
Diffstat (limited to 'etc/lighttpd.conf')
-rw-r--r-- | etc/lighttpd.conf | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/etc/lighttpd.conf b/etc/lighttpd.conf deleted file mode 100644 index a69407f..0000000 --- a/etc/lighttpd.conf +++ /dev/null @@ -1,56 +0,0 @@ -server.document-root = "/var/www/htdocs" - -server.port = 80 - -server.username = "git" -server.groupname = "git" - -server.modules += ("mod_cgi", "mod_fastcgi") - -index-file.names = ("index.html") - -cgi.assign = ("cgit.cgi" => "") - -mimetype.assign = ( - ".html" => "text/html", - ".txt" => "text/plain", - ".jpg" => "image/jpeg", - ".png" => "image/png", - ".css" => "text/css" -) - - -$SERVER["socket"] == ":8080" { - server.username = "cache" - server.groupname = "cache" - fastcgi.server = ( - "" => - ( - "python-fcgi" => - ( - "socket" => "/var/run/lighttpd/morph-cache-server.socket", - "bin-path" => "/usr/bin/morph-cache-server --config=/etc/morph-cache-server.conf", - "check-local" => "disable", - "max-procs" => 4, - ) - ) - ) -} - - -$SERVER["socket"] == ":8081" { - server.username = "cache" - server.groupname = "cache" - fastcgi.server = ( - "" => - ( - "python-fcgi" => - ( - "socket" => "/var/run/lighttpd/morph-cache-server-write.socket", - "bin-path" => "/usr/bin/morph-cache-server --config=/etc/morph-cache-server-write.conf", - "check-local" => "disable", - "max-procs" => 1, - ) - ) - ) -} |