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>
Basic explanations:
HTTP GET xxx ... Host: yyy
at the beginning of each conversation.Now the actual answer to your question is:
<Proxy>
matches a backend URI.<Directory>
matches a real local filesystem directory, something that you cancd
from the shell.<Directory>
quite possibly never matches a<Proxy>
.Rest of what you wrote requires either looking into the docs for like a minute, or asking as a separate question on this site.