Correct some Apache configs

This commit is contained in:
Salt 2020-02-06 00:01:26 -06:00
parent cbb84598b9
commit c2d9a3786f
2 changed files with 15 additions and 3 deletions

View File

@ -13,6 +13,11 @@ SSLStrictSNIVHostCheck off
# 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
@ -26,4 +31,9 @@ SSLStrictSNIVHostCheck off
</Directory>
ServerName {{ nextcloud_url }}
DocumentRoot {{ nextcloud_webroot }}
<Directory "{{ nextcloud_webroot }}">
Require all granted
AllowOverride All
Options MultiViews FollowSymlinks
</Directory>
</VirtualHost>

View File

@ -4,8 +4,10 @@
# 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>