Before I launch my website, I want to be able to test it live in production but don't want anyone else to view it.<div><br>Would it be possible to lock down the website except for the main page, all other pages require me to enter a password to view it?</div>

<div><br></div><div>I can do this many ways (by limited ip address etc), but I was wondering if there was a simple way to do it via nginx somehow which would save me the work.</div><div><br></div><div>I've seen some very crude types of authentication where you get this ugly popup and you enter the password and you can view the site.  </div>

<div><br></div><div>I believe it was using the web server to do this.</div><div><br></div><div>Possible?  </div>