NginxHttpAuthBasicModule and Subfolders

Igor Sysoev igor at sysoev.ru
Fri Sep 10 16:22:22 MSD 2010


On Fri, Sep 10, 2010 at 02:18:53PM +0200, Dimitri Roschkowski 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 Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list