mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #742] http转发对内网地址可否预加载?或直接进行网址映射? #582
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#582
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 @xiaoyell on GitHub (May 5, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/742
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
0.16
What operating system and processor architecture are you using (
go env)?centos6
Configures you used:
不涉及
Steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
代理访问某些内网服务器时,返回的页面有时会带有绝对内网地址如http://192.168.1.1/usr.html,导致访问者无法访问该资源。
Describe the results you expected:
有没有可能在frpc端就对该内容直接预加载返回到访问端或者直接将该地址进行网址映射,如将http://192.168.1.1/usr.html映射到http://xx.exmple.com/usr.html
Additional information you deem important (e.g. issue happens only occasionally):
http协议为明文协议,相关信息修改技术上时可行的,就是可能会影响执行效率。
另外,对于网址映射(replace?)使用场景还能更多,如某些静态js的cdn加速等(有些CDN不支持带参数的静态js缓存,我们就可以将xx.js?v=12345替换为xx.js,或直接将该js文件映射到其他地址)
Can you point out what caused this issue (optional)
@fatedier commented on GitHub (May 7, 2018):
和 http 相关的很多功能,还是结合其他的服务例如 nginx 一起来使用吧,否则这一类的需求最终就是 nginx 的功能重新实现一遍。
@xiaoyell commented on GitHub (May 8, 2018):
@fatedier 好吧 查了资料在尝试用sub_filter替换,感谢大神