Welcome! Log In Create A New Profile

Advanced

Password protection and fastcgi

December 20, 2011 04:43PM
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
Subject Author Posted

Password protection and fastcgi

Veerle December 20, 2011 04:43PM

Re: Password protection and fastcgi

Ensiferous December 20, 2011 09:56PM

Re: Password protection and fastcgi

Veerle December 21, 2011 08:47AM

Re: Password protection and fastcgi

Valentin V. Bartenev December 21, 2011 09:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 306
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready