How can I get auth working for the whole /reports dir? I tried even
putting in the exact /reports/report.php URL in a location block, a
regexp ^/reports etc…
Only the PHP location is matched by /reports/report.php
the solution may be to use nested locations (but this is an unstable
feature), or adding a specific location that matches something like
^/reports.*.php$
I’m going to go ahead and repost this and ask Igor about it since he’s
back.
Igor - this is coming up now more often, I need a way to secure a full
path like /admin/ and still secure the php files underneath. Right now
if it matches the .php it forwards it on to fastcgi and skips the auth
step.
Is there a “smart” way to do this, or perhaps a quick patch? My only
option so far is to try to chain some rewrite rules so it passes auth
first then goes to the PHP stuff (like this pseudo code from Denis):