Skip to content

Instantly share code, notes, and snippets.

@bldewolf
Created April 22, 2016 17:33
Show Gist options
  • Save bldewolf/6ab383a2cdc7cc7a9003ba80abbbb0d1 to your computer and use it in GitHub Desktop.
Save bldewolf/6ab383a2cdc7cc7a9003ba80abbbb0d1 to your computer and use it in GitHub Desktop.
$HTTP["host"] == "stats.vhost" {
alias.url += (
"/icingaweb2" => "/usr/share/icingaweb2/public",
)
url.rewrite-if-not-file += ( "/icingaweb2[^?]*(\?.*)" => "/icingaweb2/index.php$1" )
url.rewrite-if-not-file += ( "/icingaweb2" => "/icingaweb2/index.php" )
fastcgi.server += ( "/icingaweb2/index.php" =>
((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/var/run/lighttpd/php.socket",
"max-procs" => 1,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "4",
"PHP_FCGI_MAX_REQUESTS" => "10000",
"ICINGAWEB_CONFIGDIR" => "/etc/icingaweb2"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"check-local" => "enable",
))
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment