mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
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:
@@ -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::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user