mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1979] http header的自定义字段是否支持动态内容呢? #1573
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#1573
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 @hr0109 on GitHub (Sep 11, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1979
比如nginx反向代理,是支持将$host作为自定义header的内容的,请问frp目前是否具有类似的功能呢?
@blizard863 commented on GitHub (Sep 14, 2020):
@blizard863 commented on GitHub (Sep 14, 2020):
https://gofrp.org/docs/features/http-https/header/
@hr0109 commented on GitHub (Sep 14, 2020):
请注意是动态内容
比如我用127.0.0.1访问,这个字段就是127.0.0.1。我用外网ip访问,那这个字段就应该是对应的外网ip。而不是一直不变的frp或者其它什么。
有一些服务器需要根据自定义字段返回资源的绝对url,静态的header内容无法兼容不同来源(内网、外网)的访问请求
@blizard863 commented on GitHub (Sep 14, 2020):
这个勒 ?
@fatedier commented on GitHub (Sep 21, 2020):
@hr0109 这是一个相对来说复杂的 HTTP server 的需求,建议在前面挡一层 nginx 来实现此能力。
@github-actions[bot] commented on GitHub (Nov 6, 2020):
Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.