nginx禁止执行php脚本

Friday, Dec 14, 2018 | 1 minute read | Updated at Friday, Dec 14, 2018

@

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

location ~ .*\.(php)?$
        {
                deny all;
        }

禁止制定目录执行php脚本

location /upload/ {
	location ~ .*\.(php)?$
	{
		deny all;
	}

© 2018 - 2026 vpslala

🌱 Powered by Hugo with theme Dream.