aboutsummaryrefslogtreecommitdiff
path: root/roles/icinga2/templates/default-ssl.conf.j2
blob: 7c9ab9ee1fac2090b1e8dfb063fc500a8941e4c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<IfModule mod_ssl.c>
	<VirtualHost _default_:443>
		ServerAdmin webmaster@localhost
		DocumentRoot /var/www/html

		ErrorLog ${APACHE_LOG_DIR}/error.log
		CustomLog ${APACHE_LOG_DIR}/access.log combined

		SSLEngine on
		SSLProtocol -all +TLSv1.2 +TLSv1.3
		SSLCertificateFile {{ icingaweb.cert.cert }}
		SSLCertificateKeyFile {{ icingaweb.cert.key }}

		<FilesMatch "\.(cgi|shtml|phtml|php)$">
				SSLOptions +StdEnvVars
		</FilesMatch>
		<Directory /usr/lib/cgi-bin>
				SSLOptions +StdEnvVars
		</Directory>
	</VirtualHost>
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet