linux服务器限制nginx php网站禁止访问.git、.env文件
在server{}段内增加
location ~ /\.
{
deny all;
}
或者下面代码
location ^~ /.git
{
return 444;
}
本文由 我爱PHP169 作者:admin 发表,其版权均为 我爱PHP169 所有,文章内容系作者个人观点,不代表 我爱PHP169 对观点赞同或支持。如需转载,请注明文章来源。
Warning: count(): Parameter must be an array or an object that implements Countable in /home/leikaixin0lzesipk4aui0xuirn/wwwroot/wp-content/themes/mnews/includes/post-like.php on line 207
赞0