From 5c5a4a269d968f8fb04252750542ffe2384189b5 Mon Sep 17 00:00:00 2001 From: AndrewwHummer Date: Fri, 7 Aug 2020 11:17:34 +0200 Subject: [PATCH 1/2] Example centos, add working secure apache config It would be really helpful if the example of a CentOS Configuration Walkthrough would directly contain a working and secure apache configuration. Just the Reference to the detailed apache config is not adequate and too easy to overlook and users will end up with an unsecure and broken config. This could lead to the usual htaccess not working questions. So here is my proposal :) --- admin_manual/installation/example_centos.rst | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/admin_manual/installation/example_centos.rst b/admin_manual/installation/example_centos.rst index 5412bc41e..49338c7c4 100644 --- a/admin_manual/installation/example_centos.rst +++ b/admin_manual/installation/example_centos.rst @@ -21,8 +21,26 @@ Apache :: dnf install -y httpd + +Create a virtualhost in ``/etc/httpd/conf.d/nextcloud.conf`` and add the following content to it: -See :ref:`apache_configuration_label` for details. +:: + + + DocumentRoot /var/www/html/nextcloud/ + ServerName your.server.com + + + Require all granted + AllowOverride All + Options FollowSymLinks MultiViews + + + Dav off + + + + Make sure the apache web service is enabled and started:: From 98a9fc18df08c26285f535eb6e5e4e621ece5b67 Mon Sep 17 00:00:00 2001 From: AndrewwHummer Date: Fri, 7 Aug 2020 14:23:33 +0200 Subject: [PATCH 2/2] Update example_centos.rst add ref to detailed apache config back again --- admin_manual/installation/example_centos.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin_manual/installation/example_centos.rst b/admin_manual/installation/example_centos.rst index 49338c7c4..fec697e8d 100644 --- a/admin_manual/installation/example_centos.rst +++ b/admin_manual/installation/example_centos.rst @@ -41,6 +41,9 @@ Create a virtualhost in ``/etc/httpd/conf.d/nextcloud.conf`` and add the followi + + +See :ref:`apache_configuration_label` for further details. Make sure the apache web service is enabled and started::