I'm looking for an equivalent of nginx http auth request module but for Apache.
For each incoming HTTP requests, the module sends a subrequests to authentication/authorization back-end. The auth request carries a path and all headers of the original request. Based on the result of the auth request, the original requests is allowed (HTTP code 200), denied (HTTP code 403) or login is requested (HTTP code 401). Such a generic mechanism allows to build really flexible authentication and authorization schemes.
Is something like this possible in Apache (likely with a help of some third party module)?
Requests are handled in parallel by the web server (which runs the PHP script). Updating data in the database is pretty fast, so any update will appear instantaneous, even if you need to update multiple tables.
Introduction. HttpClient supports three different types of http authentication schemes: Basic, Digest and NTLM.
The Apache web server allows for per-directory configuration through the use of . htaccess files. Users can password protect directories using the built-in Basic Authentication mechanism.
This module does just that ... http://search.cpan.org/~chansen/Authen-Simple-HTTP-0.2/lib/Authen/Simple/HTTP.pm
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::HTTP
PerlSetVar AuthenSimpleHTTP_url "http://www.host.com/protected"
<Location /protected>
PerlAuthenHandler Authen::Simple::HTTP
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With