Welcome! Log In Create A New Profile

Advanced

Re: authenticated session downloads auth_basic protected php files

September 29, 2012 07:00PM
OK, I think my case is much simpler. Having

location = /something.php {
auth_basic "Restricted";
auth_basic_user_file ...;
}

before

location ~ \.php$ {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/home/kek/http/private/php.socket;
include fastcgi_params;
try_files $uri =404;
}

Stops at the first step. Is there any way to password protect a single php file AND keep parsing it as php? Or should I copy and paste those lines into the first one?
SubjectAuthorPosted

authenticated session downloads auth_basic protected php files

zseroSeptember 29, 2012 06:52PM

Re: authenticated session downloads auth_basic protected php files

zseroSeptember 29, 2012 07:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready