ansible/roles/nagios/templates/apache2-vhost-ssl.conf

33 lines
920 B
Plaintext
Raw Normal View History

2020-07-23 23:13:16 -05:00
# Configuration for {{ nagios_url }}
# vim:ft=apache:
# Accept connections from non-SNI clients
SSLStrictSNIVHostCheck off
# Website configuration
<VirtualHost *:80>
ServerName {{ nagios_url }}
Redirect permanent / https://{{ nagios_url }}
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/cert/crt/{{ nagios_url }}.crt
SSLCertificateKeyFile /etc/pki/cert/private/{{ nagios_url }}.key
SSLCertificateChainFile /etc/pki/cert/crt/{{ nagios_url}}-fullchain.crt
SSLProtocol {{ ssl_protocol }}
SSLCipherSuite {{ ssl_cipher_suite }}
<FilesMatch "\.(cgi|shtml|phtml|php)$">\
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
ServerName {{ nagios_url }}
DocumentRoot {{ nagios_webroot }}
<Directory "{{ nagios_webroot }}">
Require all granted
AllowOverride All
Options MultiViews FollowSymlinks
</Directory>
</VirtualHost>