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?
Subject Author Posted

authenticated session downloads auth_basic protected php files

zsero September 29, 2012 06:52PM

Re: authenticated session downloads auth_basic protected php files

zsero September 29, 2012 07:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 257
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