Welcome! Log In Create A New Profile

Advanced

Denying certain file types within a location

Atif Ghaffar
May 06, 2009 04:08PM
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
Subject Author Posted

Denying certain file types within a location

Atif Ghaffar May 06, 2009 04:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 193
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready