# Remove Authentication Dialog in the browser when a particular folder is accessed

**URL:** <https://www.ruby-forum.com/t/remove-authentication-dialog-in-the-browser-when-a-particular-folder-is-accessed/221452>\
**Category:** NGINX\
**Created:** [July 16, 2012, 3:25am UTC](https://www.ruby-forum.com/t/remove-authentication-dialog-in-the-browser-when-a-particular-folder-is-accessed/221452 "2012-07-16T03:25:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [July 16, 2012, 3:25am UTC](https://www.ruby-forum.com/t/remove-authentication-dialog-in-the-browser-when-a-particular-folder-is-accessed/221452/1 "2012-07-16T03:25:31Z")

</div>

Hi

I am new to nginx and I want to remove the dialog box that comes up  
requesting a username and password when the admin folder is accessed.  
eg; [http://localhost/admin](http://localhost/admin)

The previous developer who handled this left suddenly and left no  
documentation. How can I remove this?

Thanks  
tbt

Posted at Nginx Forum:

> **[Remove Authentication Dialog in the browser when a particular folder is accessed](https://forum.nginx.org/read.php?2,228605,228605#msg-228605)**
>
> Hi I am new to nginx and I want to remove the dialog box that comes up requesting a username and password when the admin folder is accessed. eg; http://localhost/admin The previous developer who handled this left suddenly and left no documentation....

---

<div class="post-metadata">

**Author:** ![tbt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47774/32.png) [@tbt](https://www.ruby-forum.com/u/tbt)\
**Post date:** [July 17, 2012, 6:30pm UTC](https://www.ruby-forum.com/t/remove-authentication-dialog-in-the-browser-when-a-particular-folder-is-accessed/221452/2 "2012-07-17T18:30:43Z")

</div>

Hello!

On Sun, Jul 15, 2012 at 09:24:38PM -0400, tbt wrote:

> Hi
> 
> I am new to nginx and I want to remove the dialog box that comes up  
> requesting a username and password when the admin folder is accessed.  
> eg; [http://localhost/admin](http://localhost/admin)
> 
> The previous developer who handled this left suddenly and left no  
> documentation. How can I remove this?

You have to remove or comment out auth\_basic directive from your  
config. See here for details:

> **[Module ngx\_http\_auth\_basic\_module](http://nginx.org/en/docs/http/ngx_http_auth_basic_module.html#auth_basic)**
>
> The ngx\_http\_auth\_basic\_module module allows limiting access to resources by validating the user name and password using the “HTTP Basic Authentication” protocol.

Maxim D.
