From 5adc5cab719dfdd13bd687564d43f9df4a3cf6d0 Mon Sep 17 00:00:00 2001 From: Sascha Wiswedel Date: Fri, 3 May 2019 06:58:31 +0200 Subject: [PATCH] Apache config reordering order was confusing for CentOS setup Signed-off-by: Sascha Wiswedel --- .../installation/source_installation.rst | 41 +++++++++++-------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/admin_manual/installation/source_installation.rst b/admin_manual/installation/source_installation.rst index d10ed35b1..ceca564a6 100644 --- a/admin_manual/installation/source_installation.rst +++ b/admin_manual/installation/source_installation.rst @@ -267,21 +267,8 @@ Now make sure your system is up to date:: **Apache** yum install -y httpd - -Create a virtualhost file and add the following content to it:: - - vi /etc/httpd/conf.d/nextcloud.conf - - - DocumentRoot /var/www/html/ - ServerName your.server.com - - - Require all granted - AllowOverride All - Options FollowSymLinks MultiViews - - + +See :ref:`apache-web-server-configuration` for details. Make sure the apache web service is enabled and started:: @@ -431,7 +418,8 @@ it, replacing the **Directory** and other filepaths with your own filepaths:: Alias /nextcloud "/var/www/nextcloud/" - Options +FollowSymlinks + Require all granted + Options FollowSymlinks MultiViews AllowOverride All @@ -446,6 +434,27 @@ it, replacing the **Directory** and other filepaths with your own filepaths:: Then enable the newly created site:: a2ensite nextcloud.conf + + +On CentOS/RHEL, create a virtualhost :file:`/etc/httpd/conf.d/nextcloud.conf`and add the following content to it: + + + + DocumentRoot /var/www/nextcloud/ + ServerName your.server.com + + + + Require all granted + AllowOverride All + Options FollowSymLinks MultiViews + + + Dav off + + + + Additional Apache configurations ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^