Sanitize lighttpd conf
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2024-02-19 17:27:25 +01:00
parent e39a5f4390
commit 2806ab179e

View File

@ -16,11 +16,11 @@ var.statedir = "/var/lib/lighttpd"
server.modules = ( server.modules = (
# "mod_rewrite", # "mod_rewrite",
# "mod_redirect", # "mod_redirect",
# "mod_alias", "mod_alias",
"mod_access", "mod_access",
# "mod_auth", # "mod_auth",
# "mod_status", # "mod_status",
# "mod_setenv", "mod_setenv",
# "mod_proxy", # "mod_proxy",
# "mod_simple_vhost", # "mod_simple_vhost",
# "mod_evhost", # "mod_evhost",
@ -49,7 +49,6 @@ server.username = "lighttpd"
server.groupname = "lighttpd" server.groupname = "lighttpd"
server.document-root = var.basedir + "/htdocs" server.document-root = var.basedir + "/htdocs"
server.pid-file = "/run/lighttpd.pid"
#server.errorlog = var.logdir + "/error.log" #server.errorlog = var.logdir + "/error.log"
# log errors to syslog instead # log errors to syslog instead
@ -295,15 +294,20 @@ url.access-deny = ("~", ".inc")
# }}} # }}}
# Nagios # Nagios
$HTTP["url"] =~ "^/nagios" {
alias.url = ( alias.url = (
"/cgi-bin/nagios" => "/usr/lib/nagios/cgi-bin",
"/nagios/cgi-bin" => "/usr/lib/nagios/cgi-bin", "/nagios/cgi-bin" => "/usr/lib/nagios/cgi-bin",
"/nagios" => "/usr/share/nagios/htdocs", "/nagios" => "/usr/share/nagios/htdocs"
"/pnp4nagios" => "/usr/share/nagios/htdocs"
) )
$HTTP["url"] =~ "^/nagios/cgi-bin" { $HTTP["url"] =~ "^/nagios/cgi-bin" {
cgi.assign = ( "" => "" ) cgi.assign = ( "" => "" )
} }
setenv.set-environment = (
"AUTH_USER" => "nagiosadmin",
"REMOTE_USER" => "nagiosadmin"
)
}
# vim: set ft=conf foldmethod=marker et : # vim: set ft=conf foldmethod=marker et :