mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3025] [Feature Request] 是否可以将http和https绑定到相同端口? #2417
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#2417
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 @chingxuds on GitHub (Jul 20, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3025
Describe the feature request
如题,是否可以将http和https绑定到相同端口,依据域名进行服务区分。
Describe alternatives you've considered
No response
Affected area
@Becods commented on GitHub (Jul 20, 2022):
莫名其妙
请补充一下使用场景
前端http默认80 https默认443 这个不用管
非标的话还要绑域名,是不是有点多此一举
tcp映射后端nginx把http和https配置写一块就行了
@chingxuds commented on GitHub (Jul 20, 2022):
是这样的,我在云主机上搭建了frps,通过nginx作泛域名反向代理。
现在http和https因为是两个不同的端口,需要反代两次,而泛域名无法知道哪个服务需要使用http,哪个需要使用https,就只能先尝试https,失败后再试http。
如果是同一个端口,则只需要反代一次就足够了。
@fuyoo commented on GitHub (Jul 28, 2022):
你那个https在nginx校验就行了啊。为什么要在frps上走证书?例如:nignx 配置
这样不需要frps的443端口
@github-actions[bot] commented on GitHub (Aug 28, 2022):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.