This is for Apache 2.4.58.
Why is it that the following order of Location/LocationMatch will only evaluate the latter, but if it is reversed that it will evaluate both as intended?
<Location /basic/website/>
Require external-group third-party-require-clause-allowing-for-anonymous-access
</Location>
<LocationMatch "^/basic/website/(?<user>[-_\.\w\d]+)/?" >
Require user %{env:MATCH_USER}
</LocationMatch>
For reference, I am using mod_auth_external 3.3.3 for the third-party require clause.
The intention of the above configuration is to
- grant anonymous access (when appropriate)
- otherwise grant access according to criteria
- finally to ensure that a specific user is always allowed to access their part regardless