Adjust download apache conf to work with 2.2 or 2.4
This commit is contained in:
parent
80e8bb0ff1
commit
e5862ccf2e
1 changed files with 20 additions and 1 deletions
|
@ -2,12 +2,31 @@ Alias /pub /srv/pub
|
||||||
|
|
||||||
DocumentRoot /srv/web
|
DocumentRoot /srv/web
|
||||||
|
|
||||||
|
|
||||||
<Directory /srv/pub>
|
<Directory /srv/pub>
|
||||||
Options Indexes FollowSymLinks
|
|
||||||
HeaderName /HEADER.html
|
HeaderName /HEADER.html
|
||||||
ReadmeName /FOOTER.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>
|
||||||
|
|
||||||
<Directory /srv/pub/archive>
|
<Directory /srv/pub/archive>
|
||||||
ReadmeName /pub/archive/README.html
|
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>
|
</Directory>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue