Sanitize lighttpd conf
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e39a5f4390
commit
2806ab179e
@ -16,11 +16,11 @@ var.statedir = "/var/lib/lighttpd"
|
||||
server.modules = (
|
||||
# "mod_rewrite",
|
||||
# "mod_redirect",
|
||||
# "mod_alias",
|
||||
"mod_alias",
|
||||
"mod_access",
|
||||
# "mod_auth",
|
||||
# "mod_status",
|
||||
# "mod_setenv",
|
||||
"mod_setenv",
|
||||
# "mod_proxy",
|
||||
# "mod_simple_vhost",
|
||||
# "mod_evhost",
|
||||
@ -49,7 +49,6 @@ server.username = "lighttpd"
|
||||
server.groupname = "lighttpd"
|
||||
|
||||
server.document-root = var.basedir + "/htdocs"
|
||||
server.pid-file = "/run/lighttpd.pid"
|
||||
|
||||
#server.errorlog = var.logdir + "/error.log"
|
||||
# log errors to syslog instead
|
||||
@ -295,15 +294,20 @@ url.access-deny = ("~", ".inc")
|
||||
# }}}
|
||||
|
||||
# Nagios
|
||||
$HTTP["url"] =~ "^/nagios" {
|
||||
alias.url = (
|
||||
"/cgi-bin/nagios" => "/usr/lib/nagios/cgi-bin",
|
||||
"/nagios/cgi-bin" => "/usr/lib/nagios/cgi-bin",
|
||||
"/nagios" => "/usr/share/nagios/htdocs",
|
||||
"/pnp4nagios" => "/usr/share/nagios/htdocs"
|
||||
"/nagios" => "/usr/share/nagios/htdocs"
|
||||
)
|
||||
|
||||
$HTTP["url"] =~ "^/nagios/cgi-bin" {
|
||||
cgi.assign = ( "" => "" )
|
||||
}
|
||||
|
||||
setenv.set-environment = (
|
||||
"AUTH_USER" => "nagiosadmin",
|
||||
"REMOTE_USER" => "nagiosadmin"
|
||||
)
|
||||
}
|
||||
|
||||
# vim: set ft=conf foldmethod=marker et :
|
||||
|
Loading…
Reference in New Issue
Block a user