# Configuration not working

**URL:** <https://www.ruby-forum.com/t/configuration-not-working/238774>\
**Category:** NGINX\
**Created:** [January 28, 2014, 1:25pm UTC](https://www.ruby-forum.com/t/configuration-not-working/238774 "2014-01-28T13:25:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [January 28, 2014, 1:25pm UTC](https://www.ruby-forum.com/t/configuration-not-working/238774/1 "2014-01-28T13:25:35Z")

</div>

Hello,

I am running Nginx 1.3.0 on CentOS. It serves several domains.

Yesterday we tried to change the allowed URIs to access one folder  
specific to one domain. After the config file change we tried the “nginx  
-s reload”, without apparent success or errors. After this I rebooted  
the server, but the restrictions are still not effective. I still can  
access “[www.secret.com/\_abc/def/ghi/](http://www.secret.com/_abc/def/ghi/)” contents from anywhere.

_nginx -V_ output:

nginx version: nginx/1.3.0  
TLS SNI support enabled  
configure arguments: --prefix=/usr/share --sbin-path=/usr/sbin/nginx  
–conf-path=/etc/nginx/nginx.conf  
–error-log-path=/var/log/nginx/error.log  
–http-log-path=/var/log/nginx/access.log  
–lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid  
–http-client-body-temp-path=/var/lib/nginx/body  
–http-fastcgi-temp-path=/var/lib/nginx/fastcgi  
–http-proxy-temp-path=/var/lib/nginx/proxy  
–http-scgi-temp-path=/var/lib/nginx/scgi  
–http-uwsgi-temp-path=/var/lib/nginx/uwsgi --user=nginx --group=nginx  
–with-ipv6 --with-file-aio --with-http\_ssl\_module  
–with-http\_realip\_module --with-http\_sub\_module --with-http\_dav\_module  
–with-http\_gzip\_static\_module --with-http\_stub\_status\_module

The complete _/etc/nginx/nginx.conf_ file:

worker\_processes 1;  
events { worker\_connections 1024;}  
http  
{  
include mime.types;  
default\_type application/octet-stream;  
sendfile on;  
keepalive\_timeout 65;  
gzip on;  
gzip\_min\_length 1000; # bytes  
gzip\_proxied expired no-cache no-store private auth;  
gzip\_types text/plain application/xml text/css  
text/javascript application/json text/xml application/javascript;  
server\_tokens off;  
server  
{  
# ?? mainly for domain [www.blabla.com](http://www.blabla.com), usefull for  
others  
location /client/data/up/ { expires 720h; }  
# all domains  
location /css/ { expires 720h; }  
location /img/ { expires 720h; }  
location /js/ { expires 720h; }  
location /lib/ { expires 720h; }  
location /piwik/ { expires 720h; }  
}  
server  
{  
server\_name [www.secret.com](http://www.secret.com);  
#location /\_abc/def/ { … }  
location /\_abc/def/ghi/  
{  
allow 123.456.654.321;  
deny all;  
}  
}

```
     include /etc/nginx/conf.d/*.conf;

```

}  
#vim: sw=4: sts=4: ts=8

I quickly read the error logs, didn’t see anything meaningful. What may  
be wrong?
