password protect site except for one page

Steve Holdoway steve at
Tue Sep 16 23:18:43 UTC 2014

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 /



Steve Holdoway BSc(Hons) MIITP
Skype: sholdowa

More information about the nginx mailing list