This is the configuration:
<Directory />
Deny from all
Allow from localhost
Order Deny,Allow
AuthType Basic
Require valid-user
AllowOverride None
Satisfy any
Options None FollowSymLinks
</Directory>
<Proxy *>
Deny from all
Order Deny,Allow
AuthType Basic
Require valid-user
Satisfy any
Options None FollowSymLinks
</Proxy>
Questions:
1) Why configured Proxy *
if already configured Directory /
?
2) Should be configured Proxy *
or Proxy /
3) Should all attributes (e.g. Deny from all
or Allow from localhost
) be configured twice (Proxy
and Directory
) or enough only in one place? If in one place where it should configured: Proxy
or Directory
?
4) What configuration takes priority Proxy
or Directory
?
Added
Is order of Directory / Proxy in the configuration file is important?
For example if I have specific /app
related section should it be before or after the root section?
<Directory /app>
AuthType None
</Directory>
<Proxy http://localhost:8080/app >
AuthType None
</Proxy>