Forum: NGINX Denying certain file types within a location

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Atif G. (Guest)
on 2009-05-07 00:16
(Received via mailing list)
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?
This topic is locked and can not be replied to.