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 :)
This commit is contained in:
AndrewwHummer
2020-08-07 11:17:34 +02:00
committed by GitHub
parent bd6569b153
commit 63cb4ad484

View File

@@ -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.
::
<VirtualHost *:80>
DocumentRoot /var/www/html/nextcloud/
ServerName your.server.com
<Directory /var/www/html/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
</VirtualHost>
Make sure the apache web service is enabled and started::