Hi,
It works, but i am still able to access the php files inside the restricted
directories. I tried with :
location /myfolder/(.+)\.php$ {
deny all;
}
But this doesn't work!
Also, i cannot make this method work nice with our clean url's. We are
using :
location / {
#try_files $uri $uri/ /index.php;
#try_files $uri/ $uri /index.php?$query_string;
include /etc/nginx/naxsi.rules;
try_files $uri $uri.html $uri/ @extensionless-php;
}
location @extensionless-php {
rewrite ^(.*)$ $1.php last;
allow all;
}
thank you in advance for your help,
Carl
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,254785,254799#msg-254799
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx