Skip to content

401 for unauthenticated requests for URIs that don't exist? #1122

Answered by zandbelt
intrapid asked this question in Q&A
Discussion options

You must be logged in to vote

the point is that by Apache processing rules a module doesn't "know" that a URL is going to produce 404 or 200 when arriving at the authentication hook which runs before the content handler hook; this is even more obvious in the typical reverse proxying scenario where the content lives on a different server; if you (as an adminstrator) have that knowledge in advance then you should setup a Location or LocationMatch filter to catch those requests with a AuthType None rather than leading them through AuthType openidc-connect

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@intrapid
Comment options

Answer selected by intrapid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants