Denying certain file types within a location

Atif Ghaffar atif.ghaffar at
Thu May 7 00:08:09 MSD 2009

Dear all,
I would like to deny all php|cgi|pl files in a certain location.
Whats the best way to do that.

I have something like this

location /some/path {
  root /fs/path;

Shall I do a check with script_filename?

best regards
Atif Ghaffar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list