# {{ ansible_managed }} ServerName {{ nextcloud_subdomain }}.{{ domain_name }} Redirect permanent / https://{{ nextcloud_subdomain }}.{{ domain_name }}/ ServerName {{ nextcloud_subdomain }}.{{ domain_name }} DocumentRoot {{ nextcloud_www_path }} ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile {{ nextcloud_ssl_certificate_path }} SSLCertificateKeyFile {{ nextcloud_ssl_key_path }} Require all granted AllowOverride All Options FollowSymLinks MultiViews Dav off SSLOptions +StdEnvVars {% if nextcloud_hsts %} Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains{% if nextcloud_hsts_preload %}; preload{% endif %}" {% endif %} # vim: syntax=apache ts=4 sw=4 sts=4 sr noet