You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Apache2+WordPress环境下访问/server-status返回403 Forbidden错误求助

Apache2+WordPress环境下访问/server-status返回403 Forbidden错误求助

各位大佬好,我遇到个头疼的问题:我的服务器是LAMP环境搭的WordPress站点,现在想访问/server-status查看Apache状态,但不管怎么试都是403 Forbidden错误。

我已经做了这些操作:

  • 启用了Apache2的mod_status模块
  • 检查过/etc/apache2/mods-enabled/status.conf配置文件,确认里面已经把localhost和我家里电脑的IP加入了允许访问/server-status的列表
  • 试过在服务器本地用lynx访问mysite.com/server-status,也试过用家里的电脑直接访问,结果都返回403

之前我搜过相关问题,看到过一篇差不多十年前的解决方案,但现在Apache2版本更新了不少,旧方法可能不适用了,有没有最近遇到过同样问题的朋友给支个招?

备注:内容来源于stack exchange,提问作者Michael Wilmshurst

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 10:18:13