Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /www/wwwroot/www.fufengabc.com/zb_users/plugin/cat_spider/include.php on line 70

宝塔面板使用cdn后无法获取真实IP解决方法


Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /www/wwwroot/www.fufengabc.com/zb_users/plugin/cat_spider/include.php on line 70
木子玉木子玉2024-09-07 08:24:442.61 K 阅读0 评论

进入宝塔面板首页打开软件商店打开 nginx 配置,然后根据图片中操作

复制以下代码 粘贴到 http 事件里面

set_real_ip_from 0.0.0.0/0;
real_ip_header X-Forwarded-For;

宝塔面板使用cdn后无法获取真实IP解决方法


 您阅读本篇文章共花了: 

The End

文章声明:以上内容(如有图片或视频在内)除非注明,否则均为扶风测评站原创文章,转载或复制请以超链接形式并注明出处。

本文作者:木子玉本文链接:https://www.fufengabc.com/post/354.html

上一篇 下一篇

相关阅读

发表评论

访客 访客
快捷回复: 表情:
评论列表 (暂无评论,2611人围观)

还没有评论,来说两句吧...