# Nginx version: nginx/0.8.34 bug ( nginx protect folder dont work )

**URL:** <https://www.ruby-forum.com/t/nginx-version-nginx-0-8-34-bug-nginx-protect-folder-dont-work/186314>\
**Category:** NGINX\
**Created:** [April 4, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/nginx-version-nginx-0-8-34-bug-nginx-protect-folder-dont-work/186314 "2010-04-04T17:27:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![conlele](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e79b87/32.png) [@conlele](https://www.ruby-forum.com/u/conlele)\
**Post date:** [April 4, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/nginx-version-nginx-0-8-34-bug-nginx-protect-folder-dont-work/186314/1 "2010-04-04T17:27:37Z")

</div>

my config nginx.conf

```
    location /database/ {
      root /var/www/vhost/mysite.com/htdocs/database;
      index index.php index.html index.htm;
      allow xxx.xxx.xxx.xxx;
      allow yyy.yyy.yyy.yyy;
      deny all;
    }

```

when restart nginx with config.  
any ip can open [http://mysite.com/database/index.php](http://mysite.com/database/index.php)

my nginx.config is wrong or true .

or nginx bug ?

please help me.

Posted at Nginx Forum:

> **[nginx version: nginx/0.8.34 bug ( nginx protect folder dont work )](https://forum.nginx.org/read.php?2,71070,71070#msg-71070)**
>
> my config nginx.conf location /database/ { root /var/www/vhost/mysite.com/htdocs/database; index index.php index.html index.htm; allow xxx.xxx.xxx.xxx; allow yyy.yyy.yyy.yyy; deny all;

---

<div class="post-metadata">

**Author:** ![conlele](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e79b87/32.png) [@conlele](https://www.ruby-forum.com/u/conlele)\
**Post date:** [April 4, 2010, 6:29pm UTC](https://www.ruby-forum.com/t/nginx-version-nginx-0-8-34-bug-nginx-protect-folder-dont-work/186314/2 "2010-04-04T18:29:04Z")

</div>

On Apr 4, 2010, at 11:26 AM, “conlele” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> when restart nginx with config.  
> any ip can open [http://mysite.com/database/index.php](http://mysite.com/database/index.php)
> 
> my nginx.config is wrong or true .  
> Config is wrong read  
> [Can auth\_basic restrict files in certain folder?](http://nginx.org/pipermail/nginx/2010-March/019544.html)

V/r,  
Rob S.
