diff --git a/roles/nextcloud/templates/apache2-vhost-ssl.conf b/roles/nextcloud/templates/apache2-vhost-ssl.conf index f8677c1..311d337 100644 --- a/roles/nextcloud/templates/apache2-vhost-ssl.conf +++ b/roles/nextcloud/templates/apache2-vhost-ssl.conf @@ -13,6 +13,11 @@ SSLStrictSNIVHostCheck off # Leaving it off for now for testing #Redirect permanent / https://{{ nextcloud_url }} DocumentRoot {{ nextcloud_webroot }} + + Require all granted + AllowOverride All + Options MultiViews FollowSymlinks + SSLEngine on @@ -26,4 +31,9 @@ SSLStrictSNIVHostCheck off ServerName {{ nextcloud_url }} DocumentRoot {{ nextcloud_webroot }} + + Require all granted + AllowOverride All + Options MultiViews FollowSymlinks + diff --git a/roles/nextcloud/templates/apache2-vhost.conf b/roles/nextcloud/templates/apache2-vhost.conf index db27ba6..ae4c64b 100644 --- a/roles/nextcloud/templates/apache2-vhost.conf +++ b/roles/nextcloud/templates/apache2-vhost.conf @@ -4,8 +4,10 @@ # Website configuration ServerName {{ nextcloud_url }} - # Uncomment me for HTTPS redirection - # Leaving it off for now for testing - #Redirect permanent / https://{{ nextcloud_url }} DocumentRoot {{ nextcloud_webroot }} + + Require all granted + AllowOverride All + Options MultiViews FollowSymlinks +