From 63cb4ad4847ab31336bd8da46f3324ff79596b71 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 fe63f8ccb..56b5109a7 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 3fa705e4d08c196b88e7cc7e59d064235bf638d8 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 56b5109a7..c20bc4a68 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::