Welcome! Log In Create A New Profile

Advanced

password protect site except for one page

September 16, 2014 07:20PM
Hi folks,

Does anyone have a nifty solution for this? The problem is that it's a
wordpress site, so just

location / {
auth_basic "Coming soon...";
auth_basic_user_file /etc/nginx/security/lock;
...
}

location /demo {
auth_basic off;
...
}

doesn't work for /demo due to static content, etc.

The only way I can think of is to directly lock the other pages rather
than /

thoughts?

Steve

--
Steve Holdoway BSc(Hons) MIITP
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa

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

password protect site except for one page

GreenGecko September 16, 2014 07:20PM

Re: password protect site except for one page

Francis Daly September 17, 2014 03:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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