Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

password protect site except for one page (1 reply)

$
0
0
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

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>