authenticated session downloads auth_basic protected php files
zsero
nginx-forum at nginx.us
Sat Sep 29 23:00:25 UTC 2012
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?
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,231253,231254#msg-231254
More information about the nginx
mailing list