mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Merge pull request #2772 from AndrewwHummer/patch-2
Example centos walkthrough, add working secure apache config
This commit is contained in:
@@ -21,8 +21,29 @@ 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>
|
||||
|
||||
|
||||
See :ref:`apache_configuration_label` for further details.
|
||||
|
||||
Make sure the apache web service is enabled and started::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user