Welcome! Log In Create A New Profile

Advanced

Re: password protect site except for one page

Francis Daly
September 17, 2014 03:12AM
On Wed, Sep 17, 2014 at 11:18:43AM +1200, Steve Holdoway wrote:

Hi there,

> 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.

location /static {} ?

What are the urls that you do want to password-protect, and what are
the urls that you do not want to password-protect?

("one page" appears not to be "one url".)

Alternatively, could you put all of your "demo" content below /demo?

f
--
Francis Daly francis@daoine.org

_______________________________________________
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: 251
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