summaryrefslogtreecommitdiffstats
path: root/main/redmine/lighttpd-virtual.conf
blob: be0c684b0cb149101d30d89bb8653f8254b69aab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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" ),
      )
    )
  )
}