mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 00:36:08 +03:00
[GH-ISSUE #986] 无法为nginx-ui设置nginx代理 #4956
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#4956
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @a421101046 on GitHub (Apr 24, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/986
具体现象:
1.机器A 部署nginx、nginx-ui(nginx-ui会暴露9001),网页端访问机器A的9001端口可正常使用 nginx-ui
2.机器B部署nginx 暴露8001端口 代理 nginx-ui的流量,此时通过网页端访问机器B的ip:8001 或者 域名:8001,网页端会提示重定向过多。
具体配置如下:

1.机器A的nginx-ui配置文件
2.机器b
3.网页端报错信息

麻烦老师帮忙看看一下,谢谢
@0xJacky commented on GitHub (Apr 24, 2025):
经典 proxy_pass 后面漏了个
/@a421101046 commented on GitHub (Apr 24, 2025):
我补充了/,如 proxy_pass http://xxxxx:9001/ 。 浏览器端还是报重定向过多。
补充一下问题信息: 这个test.other实际是不存在的,浏览器端能访问是因为 本机的host文件里面配了 test.other 到机器b映射。
@0xJacky commented on GitHub (Apr 24, 2025):
把 location = / 那一个block 也删掉,然后 reload nginx