24 lines
703 B
ApacheConf
24 lines
703 B
ApacheConf
# Managed by Ansible
|
|
|
|
ScriptAlias /cgi-bin/nagios4 /usr/lib/cgi-bin/nagios4
|
|
ScriptAlias /nagios4/cgi-bin /usr/lib/cgi-bin/nagios4
|
|
|
|
Alias /nagios4/stylesheets /etc/nagios4/stylesheets
|
|
Alias /nagios4 /usr/share/nagios4/htdocs
|
|
|
|
<DirectoryMatch (/usr/share/nagios4/htdocs|/usr/lib/cgi-bin/nagios4|/etc/nagios4/stylesheets)>
|
|
Options FollowSymLinks
|
|
DirectoryIndex index.php index.html
|
|
AllowOverride AuthConfig
|
|
|
|
AuthUserFile "/etc/nagios4/htdigest.users"
|
|
AuthType Basic
|
|
AuthName "Restricted Files"
|
|
AuthBasicProvider file
|
|
AuthUserFile "/etc/nagios4/htdigest.users"
|
|
Require user admin
|
|
</DirectoryMatch>
|
|
|
|
<Directory /usr/share/nagios4/htdocs>
|
|
Options +ExecCGI
|
|
</Directory>
|