# NginxHttpAuthBasicModule and Subfolders

**URL:** <https://www.ruby-forum.com/t/nginxhttpauthbasicmodule-and-subfolders/194782>\
**Category:** NGINX\
**Created:** [September 10, 2010, 2:19pm UTC](https://www.ruby-forum.com/t/nginxhttpauthbasicmodule-and-subfolders/194782 "2010-09-10T14:19:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitri\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@Dimitri\_R](https://www.ruby-forum.com/u/Dimitri_R)\
**Post date:** [September 10, 2010, 2:19pm UTC](https://www.ruby-forum.com/t/nginxhttpauthbasicmodule-and-subfolders/194782/1 "2010-09-10T14:19:38Z")

</div>

Hi,

if I define auth\_basic for “location /”, /test/1234/ is also  
password-protected. Is it possible, to unprotect the path? I - for  
example - have an protected application running on the location / and  
/files/images are some pics. I do not want them to be protected. Is it  
somehow possible?

– Dimitri

---

<div class="post-metadata">

**Author:** ![Dimitri\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@Dimitri\_R](https://www.ruby-forum.com/u/Dimitri_R)\
**Post date:** [September 10, 2010, 2:23pm UTC](https://www.ruby-forum.com/t/nginxhttpauthbasicmodule-and-subfolders/194782/2 "2010-09-10T14:23:09Z")

</div>

On Fri, Sep 10, 2010 at 02:18:53PM +0200, Dimitri R. wrote:

> Hi,
> 
> if I define auth\_basic for “location /”, /test/1234/ is also  
> password-protected. Is it possible, to unprotect the path? I - for  
> example - have an protected application running on the location / and  
> /files/images are some pics. I do not want them to be protected. Is it  
> somehow possible?

location / {  
auth\_basic …  
}

location /files/images/ {  
…  
}

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**
