_ProxyingFromAnywhere
Allow proxying to the Application from everywhere
Strictly speaking, this step is unnecessary because access to proxied resources is unrestricted by default. Nevertheless, we explicitly allow access to the Application from any host so that this policy will be applied regardless of any subsequent changes to access controls at the global level. Use the Proxy
directive in the Apache configuration file as follows:
<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>
The Proxy
directive provides a context for the directives that are contained within its delimiting tags. In this case, we specify a wild-card url (the asterisk), which applies the two contained directives to all proxied requests.
The Order
directive controls the order in which any Allow
and Deny
directives are applied. In the above configuration, we specify "Deny,Allow
", which tells Apache HTTP Server to apply any Deny
directives first, and if any match, the request is denied unless it also matches an Allow
directive. In fact, "Deny,Allow
" is the default; we include it merely for the sake of clarity. Note that we specify one Allow
directive, which is described below, and don't specify any Deny
directives.
The Allow
directive, in this context, controls which hosts can access Stash via Apache HTTP Server. Here, we specify that all hosts are allowed access to the Application.
The configuration above is for Apache 2.2. In Apache 2.4 you should replace Order deny, allow Allow from all
to Require all granted