安全
目录安全
主要为: -禁止直接访问APP目录 -禁止访问二级目录下的php等文件
conf规则为:
location ~ /\.
{
deny all;
}
location ^~ /Application
{
return 404;
}
location ~* /.*/.*\.(php|pl|py|jsp|sh|cgi|php5)$
{
return 404;
}
include enable-php-pathinfo.conf;
转载请注明原文地址: https://ju.6miu.com/read-1125396.html