# AuthBasic Module

**URL:** <https://www.ruby-forum.com/t/authbasic-module/187709>\
**Category:** NGINX\
**Created:** [April 28, 2010, 5:17am UTC](https://www.ruby-forum.com/t/authbasic-module/187709 "2010-04-28T05:17:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daryl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/87869e/32.png) [@Daryl](https://www.ruby-forum.com/u/Daryl)\
**Post date:** [April 28, 2010, 5:17am UTC](https://www.ruby-forum.com/t/authbasic-module/187709/1 "2010-04-28T05:17:08Z")

</div>

Currently have set up on my server Auth basic with the following config

location ^~/eng/photos {  
auth\_basic “Please Login”;  
auth\_basic\_user\_file /etc/nginx/passwords;  
}

Even though it does work, using openssl to encrypt passwords, how do I  
enable it so that  
login is required everytime a user access’s that page. It only  
authenticates the first time.

Daryl
