Welcome! Log In Create A New Profile

Advanced

Re: Protect a specific php file

António P. P. Almeida
January 12, 2012 11:54AM
On 12 Jan 2012 16h21 WET, nginx-forum@nginx.us wrote:

> Hello,
>
> Any idea why ? Any solution ?

Yes. Duplicate the FCGI setup in the /myapp/index.php location.

location ^~ /myapp/index.php {
auth_basic "Private Section";
auth_basic_user_file $document_root/.htpasswd;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}

--- appa


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Protect a specific php file

voidandany January 12, 2012 11:21AM

Re: Protect a specific php file

António P. P. Almeida January 12, 2012 11:54AM

Re: Protect a specific php file

voidandany January 13, 2012 03:57AM

Re: Protect a specific php file

voidandany January 13, 2012 06:13AM

Re: Protect a specific php file

Francis Daly January 13, 2012 01:30PM

Re: Protect a specific php file

voidandany January 13, 2012 04:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 46
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready