[GH-ISSUE #4834] [Feature Request] 同时支持暴露同一个域名的网站和带端口的API #3817

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

Originally created by @mbj2014 on GitHub (Jun 12, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4834

Describe the feature request

当我内网有个网站,需要使用它自己带端口号的API服务。如http://192.168.1.1:9000的网站,使用http://192.168.1.1:8686/api的WebApi
暴露到公网上我希望是用http://www.mydomain.com访问,并且WebApi在http://www.mydomain.com:8686/api提供服务

尝试了用subdomain、locations、custom_domains的配置和组合,都无法实现。

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 @mbj2014 on GitHub (Jun 12, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4834 ### Describe the feature request 当我内网有个网站,需要使用它自己带端口号的API服务。如http://192.168.1.1:9000的网站,使用http://192.168.1.1:8686/api的WebApi。 暴露到公网上我希望是用http://www.mydomain.com访问,并且WebApi在http://www.mydomain.com:8686/api提供服务。 尝试了用subdomain、locations、custom_domains的配置和组合,都无法实现。 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [x] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:26:32 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 27, 2025):

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

<!-- gh-comment-id:3010889438 --> @github-actions[bot] commented on GitHub (Jun 27, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
Author
Owner

@mbj2014 commented on GitHub (Jun 29, 2025):

有人回应一下么?

<!-- gh-comment-id:3016334288 --> @mbj2014 commented on GitHub (Jun 29, 2025): 有人回应一下么?
Author
Owner

@groot-guo commented on GitHub (Jul 13, 2025):

你网站的反向代理配置了,你这看起来跟 frp 没有关系啊,内网的网站跟 frp 有什么关系,反向代理就能使用域名访问。

<!-- gh-comment-id:3066573197 --> @groot-guo commented on GitHub (Jul 13, 2025): 你网站的反向代理配置了,你这看起来跟 frp 没有关系啊,内网的网站跟 frp 有什么关系,反向代理就能使用域名访问。
Author
Owner

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

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

<!-- gh-comment-id:3124858879 --> @github-actions[bot] commented on GitHub (Jul 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#3817
No description provided.