ansible-base/roles/icinga2_server/templates/default-ssl.conf.j2

20 lines
570 B
Plaintext
Raw Normal View History

2020-10-03 12:00:19 +02:00
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin root@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/ssl_error.log
CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/fullchain.pem
SSLCertificateKeyFile /etc/apache2/privkey.pem
Redirect "^/$" https://{{ inventory_hostname }}/icingaweb2
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>