mirror of https://github.com/zulip/zulip.git
Rework the nagios Apache config as a proper vhost
This also adds HSTS. Based on the trac Apache config. Fixes #435. Suggested viewing: git show -w (imported from commit e7e9fe74687b88497ddb21f74febfc7fdf9b1979)
This commit is contained in:
parent
a9c16b38ce
commit
41319fe820
|
@ -1,4 +1,16 @@
|
|||
# apache configuration for nagios 3.x
|
||||
<VirtualHost *:80>
|
||||
ServerName nagios.humbughq.com
|
||||
Redirect permanent / https://nagios.humbughq.com/
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerName nagios.humbughq.com
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/apache2/certs/humbug-self-signed.crt
|
||||
SSLCertificateKeyFile /etc/apache2/certs/humbug-self-signed.key
|
||||
|
||||
Header add Strict-Transport-Security "max-age=15768000"
|
||||
|
||||
ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
|
||||
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3
|
||||
|
@ -36,3 +48,4 @@ RedirectMatch ^/?$ https://nagios.humbughq.com/nagios3/
|
|||
# It allows you to see a clickable list of all hostgroups in the
|
||||
# left pane of the Nagios web interface
|
||||
ScriptAlias /nagios3/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi
|
||||
</VirtualHost>
|
||||
|
|
Loading…
Reference in New Issue