Hi,
I have PHP running via FastCGI (PHP-FPM) which works fine. I am using the follwing location-directive:
[code]
location ~ \.php$ {
}
[/code]
Now I want to protect one folder (and the whole content) via Basic Authentication. The problem is if I put a location directive before the PHP-directive the included PHP-files are not handled. Other way round the protection is not working.
I found out that
a) nested locations are not recommended (bugs?)
b) I can put the PHP-directive twices (before and after the Basic Auth directive) which works but is ugly.
Is there a solution to this now? Some better way to solve this?
Thanks for help!