mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3911] 请教一下使用Nginx作为frps前置代理的配置 #3102
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3102
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 @heqiaomu on GitHub (Jan 5, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3911
Bug Description
在 nginx 的配置中,我配置的是:
我的服务端的配置是:
然后我的客户端:
然后我在访问 www.heqiaomu123.cn/application/wiki 我的路由会直接跳到 http://www.heqiaomu123.cn/login.action。理论上应该是到 www.heqiaomu123.cn/application/wiki/login.action 这个地址。我想请问下这块有相关的配置上的参考吗?
frpc Version
0.53.2
frps Version
0.53.2
System Architecture
linux/amd64
Configurations
在 nginx 的配置中,我配置的是:
我的服务端的配置是:
然后我的客户端:
Logs
No response
Steps to reproduce
...
Affected area
@superzjg commented on GitHub (Jan 6, 2024):
那个客户端
localIP是没有吗?@Fiary-Tale commented on GitHub (Jan 6, 2024):
兄弟,你试着把customDomains = ["1.1.1.1"]这个配置为customDomains = ["127.0.0.1"],就会默认转发到他的127.0.0.1:58880端口上,这样就可以做nginx反向代理了
@Fiary-Tale commented on GitHub (Jan 6, 2024):
frpc的配置改一下就可以
@heqiaomu commented on GitHub (Jan 16, 2024):
OKOK, 应该是我这边的代理问题导致的。
@github-actions[bot] commented on GitHub (Feb 7, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.