[GH-ISSUE #4785] [Feature Request] https2https support hostHeaderRewrite support domain #3777

Closed
opened 2026-05-05 14:25:10 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @LinboLen on GitHub (May 6, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4785

Describe the feature request

current only support for ip addr for hostHeaderRewrite in https2https plugin.
if not config hostHeaderRewrite or config param is not ip the https2https will not take effect

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @LinboLen on GitHub (May 6, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4785 ### Describe the feature request current only support for ip addr for hostHeaderRewrite in https2https plugin. if not config hostHeaderRewrite or config param is not ip the https2https will not take effect ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [x] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:25:10 -06:00
Author
Owner

@fatedier commented on GitHub (May 6, 2025):

Could you please provide a minimal config example and explain what exactly doesn’t work when using a domain in hostHeaderRewrite? It would also help to clarify what you mean by “https2https will not take effect.

<!-- gh-comment-id:2853224533 --> @fatedier commented on GitHub (May 6, 2025): Could you please provide a minimal config example and explain what exactly doesn’t work when using a domain in hostHeaderRewrite? It would also help to clarify what you mean by “https2https will not take effect.
Author
Owner

@LinboLen commented on GitHub (May 11, 2025):

have you tried test hostHeaderRewrite config as domain. it not working

[proxies.plugin]
type = "https2https"
localAddr = "172.20.0.2:443"
hostHeaderRewrite = "example.com"
crtPath = "/etc/frp/ssl/example.com.cer"
keyPath = "/etc/frp/ssl/example.com.key"

<!-- gh-comment-id:2869270389 --> @LinboLen commented on GitHub (May 11, 2025): have you tried test hostHeaderRewrite config as domain. it not working [proxies.plugin] type = "https2https" localAddr = "172.20.0.2:443" hostHeaderRewrite = "example.com" crtPath = "/etc/frp/ssl/example.com.cer" keyPath = "/etc/frp/ssl/example.com.key"
Author
Owner

@fatedier commented on GitHub (May 13, 2025):

Please submit as much detailed information as possible in the bug report format.

<!-- gh-comment-id:2875189065 --> @fatedier commented on GitHub (May 13, 2025): Please submit as much detailed information as possible in the bug report format.
Author
Owner

@github-actions[bot] commented on GitHub (May 28, 2025):

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

<!-- gh-comment-id:2914526152 --> @github-actions[bot] commented on GitHub (May 28, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d 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#3777
No description provided.