Hello,
i have a problem with a password protected folder and fastcgi php:
server {
root /foo/;
...
location ~ \.php$ {
fastcgi_pass foo;
include fastcgi_parms;
}
location ^~ /passwordprotected {
auth_basic "foo";
auth_basic_user_file foo;
}
}
The protection works fine, but php don't work. Then i added the fastcgi_pass part to my new location, but then images will be parsed too.
What's the right way to protect folders?
Thanks