im trying to create some regex just to match before second slash and only.
and allow all subfolders:
location ~ ^/([^/])+\.(tpl|xml)$ { return 404; }
these files are located in root folder, and i dont want them to be
downloaded,
but other files in subfolder are downloadable.
not sure why it not working?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx