[GH-ISSUE #2408] http映射URL变成访问内网IP地址 #1915

Closed
opened 2026-05-05 13:14:09 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @galaxyskyknight on GitHub (May 21, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2408

版本0.36.2一条普通的http映射,服务器8080 子域名映射内网一台netgear 6150的管理后台页面80端口,勾选加密和压缩。每次在公网用http://子域名:8080访问的时候,浏览器就变成了跳转访问http://10.0.0.3:80了,10.0.0.3是内网netgear的内部IP(我在公网,应该不是dns问题,感觉是frp吧10.0.0.3返回给了浏览器),结果当然是无法打开访问失败了。 请问是什么原因,如何解决?同一个内网下其他的设备同样的http映射又是好的,就这台设备特殊。

Originally created by @galaxyskyknight on GitHub (May 21, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2408 版本0.36.2一条普通的http映射,服务器8080 子域名映射内网一台netgear 6150的管理后台页面80端口,勾选加密和压缩。每次在公网用http://子域名:8080访问的时候,浏览器就变成了跳转访问http://10.0.0.3:80了,10.0.0.3是内网netgear的内部IP(我在公网,应该不是dns问题,感觉是frp吧10.0.0.3返回给了浏览器),结果当然是无法打开访问失败了。 请问是什么原因,如何解决?同一个内网下其他的设备同样的http映射又是好的,就这台设备特殊。
gitea-mirror 2026-05-05 13:14:09 -06:00
Author
Owner

@galaxyskyknight commented on GitHub (May 23, 2021):

谁遇到相似问题吗

<!-- gh-comment-id:846507637 --> @galaxyskyknight commented on GitHub (May 23, 2021): 谁遇到相似问题吗
Author
Owner

@fatedier commented on GitHub (May 24, 2021):

这种一般是前端的问题,前端返回的路径可能就是绝对路径。

<!-- gh-comment-id:846686197 --> @fatedier commented on GitHub (May 24, 2021): 这种一般是前端的问题,前端返回的路径可能就是绝对路径。
Author
Owner

@galaxyskyknight commented on GitHub (May 24, 2021):

这种一般是前端的问题,前端返回的路径可能就是绝对路径。

那我要怎么弄,穿透不就是解决这个问题的吗,frps上有没有什么workaround?

<!-- gh-comment-id:846909657 --> @galaxyskyknight commented on GitHub (May 24, 2021): > 这种一般是前端的问题,前端返回的路径可能就是绝对路径。 那我要怎么弄,穿透不就是解决这个问题的吗,frps上有没有什么workaround?
Author
Owner

@fatedier commented on GitHub (May 24, 2021):

将你的内网服务的路径修改为相对路径即可,或者设置成你通过外网访问的 Host。这个具体和你的服务相关,frp 不会修改这个中间的内容。

<!-- gh-comment-id:846917104 --> @fatedier commented on GitHub (May 24, 2021): 将你的内网服务的路径修改为相对路径即可,或者设置成你通过外网访问的 Host。这个具体和你的服务相关,frp 不会修改这个中间的内容。
Author
Owner

@github-actions[bot] commented on GitHub (Jul 9, 2021):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:876828720 --> @github-actions[bot] commented on GitHub (Jul 9, 2021): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1915
No description provided.