Skip to content
Snippets Groups Projects
Commit cfe12644 authored by Chris Croome's avatar Chris Croome
Browse files

Allow access to Apache chroot dir when it exists

parent 8a2fc9d5
No related branches found
No related tags found
No related merge requests found
Pipeline #20061 passed
......@@ -165,32 +165,37 @@ Include ports.conf
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
<Directory "/">
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
<Directory "/usr/share">
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
<Directory "/var/www/">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<IfFile "{{ apache_chroot_dir }}/var/www">
<Directory "{{ apache_chroot_dir }}/var/www/">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</IfFile>
#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment