Denying certain file types within a location


#1

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?