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 # Leaving it off for now for testing
#Redirect permanent / https://{{ nextcloud_url }} #Redirect permanent / https://{{ nextcloud_url }}
DocumentRoot {{ nextcloud_webroot }} DocumentRoot {{ nextcloud_webroot }}
<Directory "{{ nextcloud_webroot }}">
Require all granted
AllowOverride All
Options MultiViews FollowSymlinks
</Directory>
</VirtualHost> </VirtualHost>
<VirtualHost *:443> <VirtualHost *:443>
SSLEngine on SSLEngine on
@ -26,4 +31,9 @@ SSLStrictSNIVHostCheck off
</Directory> </Directory>
ServerName {{ nextcloud_url }} ServerName {{ nextcloud_url }}
DocumentRoot {{ nextcloud_webroot }} DocumentRoot {{ nextcloud_webroot }}
<Directory "{{ nextcloud_webroot }}">
Require all granted
AllowOverride All
Options MultiViews FollowSymlinks
</Directory>
</VirtualHost> </VirtualHost>

View File

@ -4,8 +4,10 @@
# Website configuration # Website configuration
<VirtualHost *:80> <VirtualHost *:80>
ServerName {{ nextcloud_url }} ServerName {{ nextcloud_url }}
# Uncomment me for HTTPS redirection
# Leaving it off for now for testing
#Redirect permanent / https://{{ nextcloud_url }}
DocumentRoot {{ nextcloud_webroot }} DocumentRoot {{ nextcloud_webroot }}
<Directory "{{ nextcloud_webroot }}">
Require all granted
AllowOverride All
Options MultiViews FollowSymlinks
</Directory>
</VirtualHost> </VirtualHost>