Skip to content

80 端口 ​

本文说明 80 端口的挂载方案与适配顺序。

MTUN-XD 将面板与 API 统一挂载到 80 端口:

路径服务
/LuCI
/ui/MetaCubeXD
/versionmihomo API

适配顺序 ​

按以下顺序尝试,命中即停止:

  1. uhttpd 支持 Proxy raw stream:使用原生 proxy_prefix
  2. nginx 占用 80:写入 nginx locations
  3. 以上均不适用:启动独立 HAProxy 实例
  4. 全部不可用:提示直接访问 :9090

检查 ​

sh
mtun-xd expose status
uci show uhttpd.main.proxy_prefix
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1/ui/

nginx 与 HAProxy 注意事项 ​

  • nginx 方案生成 /etc/nginx/conf.d/mtun-xd.locations
  • HAProxy 使用独立配置、PID 与 init 脚本
  • 不覆盖外部 /etc/haproxy.cfg
  • 卸载或执行 expose off 时还原 uhttpd 监听

80 端口已被其他服务占用时不应强制覆盖,应改用面板 9090 地址,或先调整端口占用。

MTUN-XD · OpenWrt / iStoreOS 管理套件