password protect site except for one page

Steve Holdoway steve at greengecko.co.nz
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 /

thoughts?

Steve

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



More information about the nginx mailing list