I can't get this to work. According to docs they can be used together.
Nginx Version: 1.10.3 --with-http_auth_request_module
location ~ ^/test(/.*|$) { satisfy any; auth_basic "test"; auth_basic_user_file .htpasswd; auth_request auth.php; }
My .htpasswd empty. I want the username / password input in basic form to be passed to my auth.php file. With this configuration, when accessing / testing, I can see the subquery made directly by auth.php. It never performs basic authentication. If I comment on auth_request auth.php , the main auth prompt will be shown. Doc says use satisfy any when using multiple auth modules.
There is an answer with a similar question with the answer, but it does not seem to work.
If someone got this to work, can you help me here?
Chris source share