NGINX:禁止上传目录执行php文件防止webshell location ~* ^/(upload)/.*\.(php|php5)$ { deny all; } 在: location ~ [^/]\.php(/|$) 前插入 转载请注明:小码农 » 各类安全设置