Welcome! Log In Create A New Profile

Advanced

Re: Can auth_basic restrict files in certain folder?

March 29, 2010 01:40AM
Hi, Rob

Great thanks for your quick reply. I have tried your suggestion out, and add the following config: [code]
location ~ ^/restrict/
{
auth_basic "STATISTIC";
auth_basic_user_file /usr/local/nginx/conf/pwfornginx
}
location ~ ^/restrict/.*\.php$
{
auth_basic "STATISTIC";
auth_basic_user_file /usr/local/nginx/conf/pwfornginx
}
[/code]

However, it is still not working. No authorization is required when I try to get access to a certain page in the restricted folder.

V/R,

gavin
Subject Author Posted

Can auth_basic restrict files in certain folder?

WisdomFusion March 28, 2010 10:32PM

Re: Can auth_basic restrict files in certain folder?

Rob Schultz March 28, 2010 11:18PM

Re: Can auth_basic restrict files in certain folder?

WisdomFusion March 29, 2010 03:08AM

Re: Can auth_basic restrict files in certain folder?

WisdomFusion March 29, 2010 01:40AM

Re: Can auth_basic restrict files in certain folder?

WisdomFusion March 29, 2010 01:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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