[GH-ISSUE #2721] 客户端80端口和443端口配置同一 个域名的泛解析会提示 start error: router config conflict #2174

Closed
opened 2026-05-05 13:24:01 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @gicexxopode on GitHub (Dec 29, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2721

Bug Description

frp如果要同时映射80和443端口到远程服务器配置如下:

[webhttp]
type = http
local_port = 80
remote_port = 808
custom_domains = *.abc.com

[webhttps]
type = https
local_port = 443
remote_port = 809
use_encryption=true
use_compression=true
custom_domains = *.abc.com

会提示 start error: router config conflict,这个是功能设计如此,还是说是个BUG

frpc Version

0.38.0

frps Version

0.38.0

System Architecture

linux/amd64

Configurations

[webhttp]
type = http
local_port = 80
remote_port = 808
custom_domains = *.abc.com

[webhttps]
type = https
local_port = 443
remote_port = 809
use_encryption=true
use_compression=true
custom_domains = *.abc.com

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @gicexxopode on GitHub (Dec 29, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2721 ### Bug Description frp如果要同时映射80和443端口到远程服务器配置如下: ``` [webhttp] type = http local_port = 80 remote_port = 808 custom_domains = *.abc.com [webhttps] type = https local_port = 443 remote_port = 809 use_encryption=true use_compression=true custom_domains = *.abc.com ``` 会提示 start error: router config conflict,这个是功能设计如此,还是说是个BUG ### frpc Version 0.38.0 ### frps Version 0.38.0 ### System Architecture linux/amd64 ### Configurations [webhttp] type = http local_port = 80 remote_port = 808 custom_domains = *.abc.com [webhttps] type = https local_port = 443 remote_port = 809 use_encryption=true use_compression=true custom_domains = *.abc.com ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:24:01 -06:00
Author
Owner

@fatedier commented on GitHub (Jan 4, 2022):

Unable to reproduce.

<!-- gh-comment-id:1004663548 --> @fatedier commented on GitHub (Jan 4, 2022): Unable to reproduce.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 4, 2022):

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

<!-- gh-comment-id:1029530435 --> @github-actions[bot] commented on GitHub (Feb 4, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@ax2009live commented on GitHub (Aug 2, 2022):

很明显,你的配置写的有问题,http 和 https 里的端口,是在 frps.ini 设置好的;
比如
vhost_http_port = 80
vhost_https_port = 443

[webhttp]
type = http
local_ip = xxx.xxx.xxx.xxx
local_port = 808
custom_domains = *.abc.com

[webhttps]
type = https
local_ip = xxx.xxx.xxx.xxx
local_port = 809
use_encryption=true
use_compression=true
custom_domains = *.abc.com

<!-- gh-comment-id:1202996351 --> @ax2009live commented on GitHub (Aug 2, 2022): 很明显,你的配置写的有问题,http 和 https 里的端口,是在 frps.ini 设置好的; 比如 vhost_http_port = 80 vhost_https_port = 443 [webhttp] type = http local_ip = xxx.xxx.xxx.xxx local_port = 808 custom_domains = *.abc.com [webhttps] type = https local_ip = xxx.xxx.xxx.xxx local_port = 809 use_encryption=true use_compression=true custom_domains = *.abc.com
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#2174
No description provided.