aboutsummaryrefslogtreecommitdiffstats
path: root/main/redmine/lighttpd-virtual.conf
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-06-21 10:56:55 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-06-21 10:56:55 +0000
commit489b6a5306f268d5c35466a82ef1184764d0f30d (patch)
treeb3c7753a61e1c472438ab4bb7161f41052ba31e3 /main/redmine/lighttpd-virtual.conf
parentaf4306109b58e890c58fe6a6bcb5c4b98c0f6164 (diff)
downloadaports-489b6a5306f268d5c35466a82ef1184764d0f30d.tar.bz2
aports-489b6a5306f268d5c35466a82ef1184764d0f30d.tar.xz
aports/main: move redmine and deps to main
Diffstat (limited to 'main/redmine/lighttpd-virtual.conf')
-rw-r--r--main/redmine/lighttpd-virtual.conf26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/redmine/lighttpd-virtual.conf b/main/redmine/lighttpd-virtual.conf
new file mode 100644
index 0000000000..be0c684b0c
--- /dev/null
+++ b/main/redmine/lighttpd-virtual.conf
@@ -0,0 +1,26 @@
+## copy this file to /etc/lighttpd to enable virtual hosting
+## make sure you set hostname correctly
+
+server.modules += ( "mod_simple_vhost" , "mod_fastcgi" )
+
+$HTTP["host"] =~ "^www\.example\.org$" {
+ server.document-root = "/var/www/localhost/htdocs/redmine/public/"
+ server.follow-symlink = "enable"
+ server.indexfiles = ( "dispatch.fcgi" )
+ server.error-handler-404 = "/dispatch.fcgi"
+
+ fastcgi.server = (
+ ".fcgi" => (
+ "redmine" => (
+ "bin-path" => "/usr/bin/ruby /var/www/localhost/htdocs/redmine/public/dispatch.fcgi",
+ "socket" => "/tmp/redmine.socket",
+ "min-procs" => 1,
+ "max-procs" => 4,
+ "idle-timeout" => 120,
+ "check-local" => "disable",
+ "bin-environment" => ( "RAILS_ENV" => "production" ),
+ )
+ )
+ )
+}
+