ansible-role-nextcloud/templates/apache2_ssl_nextcloud.conf.j2
2022-04-13 22:13:43 -04:00

38 lines
894 B
Django/Jinja

# {{ ansible_managed }}
<IfModule mod_ssl.c>
<VirtualHost *:80>
ServerName {{ nextcloud_subdomain }}.{{ domain_name }}
Redirect permanent / https://{{ nextcloud_subdomain }}.{{ domain_name }}/
</VirtualHost>
<VirtualHost *:443>
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 }}
<Directory {{ nextcloud_www_path }}>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
<FilesMatch "\.php$">
SSLOptions +StdEnvVars
</FilesMatch>
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet