admin avatar

nginx禁止执行php脚本

🕑 by admin





nginx禁止执行php脚本,代码如下

1
2
3
4
location ~ .*\.(php)?$
        {
                deny all;
        }
禁止制定目录执行php脚本

1
2
3
4
5
location /upload/ {
	location ~ .*\.(php)?$
	{
		deny all;
	}





💘 相关文章

写一条评论

Based on Golang + fastHTTP + sdb | go1.18.3 Processed in 1ms