Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Is This Correct?

$
0
0
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;
}
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>