Adjust download apache conf to work with 2.2 or 2.4

This commit is contained in:
Kevin Fenzi 2014-06-23 19:08:46 +00:00
parent 80e8bb0ff1
commit e5862ccf2e

View file

@ -2,12 +2,31 @@ Alias /pub /srv/pub
DocumentRoot /srv/web
<Directory /srv/pub>
Options Indexes FollowSymLinks
HeaderName /HEADER.html
ReadmeName /FOOTER.html
Options Indexes FollowSymLinks
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order allow,deny
Allow from all
</IfModule>
</Directory>
<Directory /srv/pub/archive>
ReadmeName /pub/archive/README.html
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order allow,deny
Allow from all
</IfModule>
</Directory>