40 lines
1.1 KiB
ApacheConf
40 lines
1.1 KiB
ApacheConf
# Configuration for {{ nextcloud_url }}
|
|
# vim:ft=apache:
|
|
|
|
# Listen for virtual host requests
|
|
NameVirtualHost *:443
|
|
# Accept connections from non-SNI clients
|
|
SSLStrictSNIVHostCheck off
|
|
|
|
# Website configuration
|
|
<VirtualHost *:80>
|
|
ServerName {{ nextcloud_url }}
|
|
# Uncomment me for HTTPS redirection
|
|
# Leaving it off for now for testing
|
|
#Redirect permanent / https://{{ nextcloud_url }}
|
|
DocumentRoot {{ nextcloud_webroot }}
|
|
<Directory "{{ nextcloud_webroot }}">
|
|
Require all granted
|
|
AllowOverride All
|
|
Options MultiViews FollowSymlinks
|
|
</Directory>
|
|
</VirtualHost>
|
|
<VirtualHost *:443>
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/pki/cert/crt/{{ nextcloud_url }}.crt
|
|
SSLCertificateKeyFile /etc/pki/cert/private/{{ nextcloud_url }}.key
|
|
<FilesMatch "\.(cgi|shtml|phtml|php)$">\
|
|
SSLOptions +StdEnvVars
|
|
</FilesMatch>
|
|
<Directory /usr/lib/cgi-bin>
|
|
SSLOptions +StdEnvVars
|
|
</Directory>
|
|
ServerName {{ nextcloud_url }}
|
|
DocumentRoot {{ nextcloud_webroot }}
|
|
<Directory "{{ nextcloud_webroot }}">
|
|
Require all granted
|
|
AllowOverride All
|
|
Options MultiViews FollowSymlinks
|
|
</Directory>
|
|
</VirtualHost>
|