I am looking for the equivalent of nginx http auth request module , but for Apache.
For each incoming HTTP request, the module sends sub-requests for authentication / authorization. The auth request contains the path and all the headers of the original request. Based on the result of the auth request, initial requests are allowed (HTTP code 200), denied (HTTP code 403) or login (HTTP code 401). Such a general mechanism allows creating truly flexible authentication and authorization schemes.
Is this possible in Apache (possibly using a third-party module)?
source share