Welcome! Log In Create A New Profile

Advanced

Is This Correct?

Posted by mindhunter77 
Is This Correct?
April 10, 2013 12:47PM
I'm trying to block script execution in my user upload directories, will this work? If so, will it also cover all sub-directories in there as well?

location /media/data/vhosts/mysite.com/htdocs/forum/mydirectory/ {
location ~ .*\.(php|php5|cgi|phtml|php4)?$
{
deny all;
}
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready