-
Hi! I wonder if it's possible to somehow send a 401 for unauthenticated requests for bogus URIs that don't exists? It requires less resources than getting a state cookie and 302 redirect. I looked at I wonder if perhaps it's possible do it with So in summary:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
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 throughAuthType openidc-connect