2021-06-02 04:03:13 +02:00
|
|
|
<VirtualHost 127.0.0.1>
|
|
|
|
ServerName nagios.teleport.<%= @default_host_domain %>
|
2012-10-26 20:01:55 +02:00
|
|
|
|
2012-12-01 03:03:41 +01:00
|
|
|
Header add Strict-Transport-Security "max-age=15768000"
|
2012-12-01 03:08:26 +01:00
|
|
|
Header add X-Frame-Options DENY
|
2012-10-26 20:01:55 +02:00
|
|
|
|
2022-01-11 00:55:20 +01:00
|
|
|
ScriptAlias /cgi-bin/nagios4 /usr/lib/cgi-bin/nagios4
|
|
|
|
ScriptAlias /nagios4/cgi-bin /usr/lib/cgi-bin/nagios4
|
2012-10-26 20:01:55 +02:00
|
|
|
|
2012-12-01 03:03:41 +01:00
|
|
|
# Where the stylesheets (config files) reside
|
2022-01-11 00:55:20 +01:00
|
|
|
Alias /nagios4/stylesheets /etc/nagios4/stylesheets
|
2012-10-26 20:01:55 +02:00
|
|
|
|
2012-12-01 03:03:41 +01:00
|
|
|
# Where the HTML pages live
|
2022-01-11 00:55:20 +01:00
|
|
|
Alias /nagios4 /usr/share/nagios4/htdocs
|
2012-10-26 20:01:55 +02:00
|
|
|
|
2021-06-08 07:40:12 +02:00
|
|
|
<Location "/">
|
|
|
|
Require all granted
|
|
|
|
</Location>
|
|
|
|
|
2022-01-11 00:55:20 +01:00
|
|
|
RedirectMatch ^/?$ https://nagios.teleport.<%= @default_host_domain %>/cgi-bin/nagios4/status.cgi?host=all
|
2012-12-01 03:07:08 +01:00
|
|
|
|
2022-01-11 00:55:20 +01:00
|
|
|
<DirectoryMatch (/usr/share/nagios4/htdocs|/usr/lib/cgi-bin/nagios4|/etc/nagios4/stylesheets)>
|
2012-12-01 03:03:41 +01:00
|
|
|
Options FollowSymLinks
|
2012-10-26 20:01:55 +02:00
|
|
|
|
2012-12-01 03:03:41 +01:00
|
|
|
DirectoryIndex index.php index.html
|
2012-10-26 20:01:55 +02:00
|
|
|
|
2012-12-01 03:03:41 +01:00
|
|
|
Order Allow,Deny
|
|
|
|
Allow From All
|
|
|
|
</DirectoryMatch>
|
|
|
|
|
2022-01-11 00:55:20 +01:00
|
|
|
<Directory /usr/share/nagios4/htdocs>
|
2012-12-01 03:03:41 +01:00
|
|
|
Options +ExecCGI
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# Enable this ScriptAlias if you want to enable the grouplist patch.
|
|
|
|
# See http://apan.sourceforge.net/download.html for more info
|
|
|
|
# It allows you to see a clickable list of all hostgroups in the
|
|
|
|
# left pane of the Nagios web interface
|
2022-01-11 00:55:20 +01:00
|
|
|
ScriptAlias /nagios4/side.html /usr/lib/cgi-bin/nagios4/grouplist.cgi
|
2012-12-01 03:03:41 +01:00
|
|
|
</VirtualHost>
|