Update mirror apache configs to 2.4 acl primitives
We don't need to keep using the old 2.2 Order, Allow, Deny, Satisfy acl primitives because we are now running Apache 2.4 everywhere. Stick to these as they simplify understanding of acls by being consistent. Change-Id: I9ed4edf15f206006fd79bdef298f8ed101a7a381
This commit is contained in:
parent
9b6398394d
commit
e9ddc2eb45
@ -33,12 +33,7 @@ ErrorLogFormat "[%{cu}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% , \
|
|||||||
<Directory /var/www/mirror>
|
<Directory /var/www/mirror>
|
||||||
Options Indexes FollowSymLinks MultiViews
|
Options Indexes FollowSymLinks MultiViews
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
Order allow,deny
|
Require all granted
|
||||||
allow from all
|
|
||||||
Satisfy any
|
|
||||||
<IfVersion >= 2.4>
|
|
||||||
Require all granted
|
|
||||||
</IfVersion>
|
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# Caching reverse proxy for things that don't make sense in AFS
|
# Caching reverse proxy for things that don't make sense in AFS
|
||||||
@ -153,8 +148,7 @@ ErrorLogFormat "[%{cu}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% , \
|
|||||||
<Macro ProxyMirror $port>
|
<Macro ProxyMirror $port>
|
||||||
# Disable directory listing by default.
|
# Disable directory listing by default.
|
||||||
<Directory />
|
<Directory />
|
||||||
Order Deny,Allow
|
Require all denied
|
||||||
Deny from all
|
|
||||||
Options None
|
Options None
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
</Directory>
|
</Directory>
|
||||||
@ -328,8 +322,7 @@ ErrorLogFormat "[%{cu}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% , \
|
|||||||
<Macro Dockerv2Mirror $port>
|
<Macro Dockerv2Mirror $port>
|
||||||
# Disable directory listing by default.
|
# Disable directory listing by default.
|
||||||
<Directory />
|
<Directory />
|
||||||
Order Deny,Allow
|
Require all denied
|
||||||
Deny from all
|
|
||||||
Options None
|
Options None
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
</Directory>
|
</Directory>
|
||||||
@ -397,8 +390,7 @@ ErrorLogFormat "[%{cu}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% , \
|
|||||||
<Macro RHRegistryMirror $port>
|
<Macro RHRegistryMirror $port>
|
||||||
# Disable directory listing by default.
|
# Disable directory listing by default.
|
||||||
<Directory />
|
<Directory />
|
||||||
Order Deny,Allow
|
Require all denied
|
||||||
Deny from all
|
|
||||||
Options None
|
Options None
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
</Directory>
|
</Directory>
|
||||||
@ -463,8 +455,7 @@ ErrorLogFormat "[%{cu}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% , \
|
|||||||
|
|
||||||
# Disable directory listing by default.
|
# Disable directory listing by default.
|
||||||
<Directory />
|
<Directory />
|
||||||
Order Deny,Allow
|
Require all denied
|
||||||
Deny from all
|
|
||||||
Options None
|
Options None
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
</Directory>
|
</Directory>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user