mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Adjust download apache conf to work with 2.2 or 2.4
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user