$SERVER["socket"] == "localhost:8080" { var.X_DEBIAN_SITEID = "default" alias.url = ( "/plugin_assets/" => "/var/cache/redmine/" + var.X_DEBIAN_SITEID + "/plugin_assets/" ) server.document-root = "/usr/share/redmine/public/" server.indexfiles = ( "dispatch.fcgi" ) server.error-handler-404 = "/dispatch.fcgi" #url.rewrite = ( "^\/$" => "index.html", "^([^.]+)$" => "$1.html" ) fastcgi.server += ( ".fcgi" => ( "redmine" => ( "min-procs" => 1, # max-procs >= 2 for Upload Progress or other tasks that need a second parallel request "max-procs" => 2, "socket" => "/var/run/redmine/sockets/" + var.X_DEBIAN_SITEID + "/fcgi.socket", "bin-path" => "/usr/share/redmine/public/dispatch.fcgi", "bin-environment" => ( "RAILS_RELATIVE_URL_ROOT" => "", "X_DEBIAN_SITEID" => var.X_DEBIAN_SITEID ), "kill-signal" => 10 # this is because programs linked against libfcgi need USR1 kill-signal ) ) ) }