From 63cb4ad4847ab31336bd8da46f3324ff79596b71 Mon Sep 17 00:00:00 2001 From: AndrewwHummer Date: Fri, 7 Aug 2020 11:17:34 +0200 Subject: [PATCH] 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::