[GH-ISSUE #5052] new proxy [svn] type [http] error: type [http] not supported when vhost http port is not set #3975

Closed
opened 2026-05-05 14:31:44 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @Haitai-92 on GitHub (Nov 12, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/5052

Bug Description

https://gofrp.org/zh-cn/docs/examples/https2http/
https://gofrp.org/zh-cn/docs/features/http-https/subdomain/
按照上述两个文档操作之后,客户端一直报错:type [http] not supported when vhost https port is not set.
1、控制面板可以正常访问,
2、tcp也是正常的,10443和10080端口也都开了,还是不行
3、svn.health.com无法访问,直接ping 域名(svn.health.com)能返回的IP是10.10.10.231(虚拟IP)
哪位朋友能帮忙看看吗?谢谢!

https://gofrp.org/zh-cn/docs/examples/https2http/
Start server and client according to this document, but the client reported an error: 'type [http] not supported when vhost https port is not set'. dashboard is ok,tcp is ok,However, both 10443 and 10080 port have been opened.

frpc Version

0.64.0

frps Version

0.64.0

System Architecture

frps:Debian 12.0 64bit linux/amd64 frpc:windows 10 frpmgr 1.24.0

Configurations

frps:
[common]
bindAddr = "10.10.10.231"
bind_port = 17000
token = 123456
subDomainHost = "health.com"
dashboard_port = 17500
dashboard_user = admin
dashboard_pwd = 123456
log_file = /opt/www/frps/frps.log
log_level = info
log_max_days = 3
vhostHTTPPort = 10080
vhostHTTPSPort = 10443

frpc:
loginFailExit = false
serverAddr = '10.10.10.231'
serverPort = 17000
start = ['svn', 'mssql', 'RDP']

[auth]
method = 'token'
token = '123456'

[frpmgr]
name = '阿里云'

[log]
level = 'info'
maxDays = 3
to = 'C:/Program Files/FRP/logs/6e0b4fdd37fe3abdd22732d7057a3b2a.log'

proxies
localIP = '127.0.0.1'
localPort = 80
name = 'svn'
subdomain = 'svn'
type = 'http'

proxies
localIP = '127.0.0.1'
localPort = 1433
name = 'mssql'
remotePort = 1220
type = 'tcp'

proxies
localIP = '127.0.0.1'
name = 'RDP'
type = 'tcp'

[transport]
tcpMux = true

[transport.tls]
disableCustomTLSFirstByte = true
enable = true

Logs

frps 日志:
2025-11-12 19:11:29.967 [I] [frps/root.go:108] frps uses config file: /opt/www/frps/frp_0.64.0_linux_amd64/frps.toml
2025-11-12 19:11:30.157 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:17000
2025-11-12 19:11:30.158 [I] [frps/root.go:117] frps started successfully
2025-11-12 19:11:30.158 [I] [server/service.go:351] dashboard listen on 0.0.0.0:17500
2025-11-12 19:11:30.654 [I] [server/service.go:582] [b5e188771817f2ad] client login info: ip [10.10.10.232:11184] version [0.64.0] hostname [] os [windows] arch [amd64]
2025-11-12 19:11:30.809 [I] [proxy/tcp.go:82] [b5e188771817f2ad] [mssql] tcp proxy listen port [1220]
2025-11-12 19:11:30.809 [I] [server/control.go:399] [b5e188771817f2ad] new proxy [mssql] type [tcp] success
2025-11-12 19:11:30.809 [W] [server/control.go:394] [b5e188771817f2ad] new proxy [svn] type [http] error: type [http] not supported when vhost http port is not set
2025-11-12 19:11:30.809 [I] [proxy/tcp.go:82] [b5e188771817f2ad] [RDP] tcp proxy listen port [0]
2025-11-12 19:11:30.809 [I] [server/control.go:399] [b5e188771817f2ad] new proxy [RDP] type [tcp] success
2025-11-12 19:11:36.400 [I] [server/dashboard_api.go:107] http request: [/api/serverinfo]
2025-11-12 19:11:36.400 [I] [server/dashboard_api.go:100] http response [/api/serverinfo]: code [200]
2025-11-12 19:12:03.816 [W] [server/control.go:394] [b5e188771817f2ad] new proxy [svn] type [http] error: type [http] not supported when vhost http port is not set

frpc 日志:
2025-11-12 19:25:51.346 [I] [client/service.go:319] [b5e188771817f2ad] try to connect to server...
2025-11-12 19:25:51.745 [I] [client/service.go:311] [b5e188771817f2ad] login to server success, get run id [b5e188771817f2ad]
2025-11-12 19:25:51.745 [I] [proxy/proxy_manager.go:177] [b5e188771817f2ad] proxy added: [svn mssql RDP]
2025-11-12 19:25:51.877 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:25:51.877 [I] [client/control.go:172] [b5e188771817f2ad] [mssql] start proxy success
2025-11-12 19:25:51.877 [I] [client/control.go:172] [b5e188771817f2ad] [RDP] start proxy success
2025-11-12 19:26:24.892 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:26:57.902 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:27:30.906 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:28:03.911 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:28:36.933 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:29:09.945 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:29:42.947 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:30:15.950 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:30:48.963 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:31:21.969 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:31:54.964 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:32:27.969 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:33:00.974 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:33:33.981 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:34:06.993 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:34:39.996 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:35:12.992 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:35:46.049 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:36:19.007 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:36:52.014 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:37:25.020 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:37:58.026 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:38:31.034 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:39:04.037 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:39:37.059 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set
2025-11-12 19:40:10.056 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set

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 @Haitai-92 on GitHub (Nov 12, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/5052 ### Bug Description https://gofrp.org/zh-cn/docs/examples/https2http/ https://gofrp.org/zh-cn/docs/features/http-https/subdomain/ 按照上述两个文档操作之后,客户端一直报错:type [http] not supported when vhost https port is not set. 1、控制面板可以正常访问, 2、tcp也是正常的,10443和10080端口也都开了,还是不行 3、svn.health.com无法访问,直接ping 域名(svn.health.com)能返回的IP是10.10.10.231(虚拟IP) 哪位朋友能帮忙看看吗?谢谢! https://gofrp.org/zh-cn/docs/examples/https2http/ Start server and client according to this document, but the client reported an error: 'type [http] not supported when vhost https port is not set'. dashboard is ok,tcp is ok,However, both 10443 and 10080 port have been opened. ### frpc Version 0.64.0 ### frps Version 0.64.0 ### System Architecture frps:Debian 12.0 64bit linux/amd64 frpc:windows 10 frpmgr 1.24.0 ### Configurations frps: [common] bindAddr = "10.10.10.231" bind_port = 17000 token = 123456 subDomainHost = "health.com" dashboard_port = 17500 dashboard_user = admin dashboard_pwd = 123456 log_file = /opt/www/frps/frps.log log_level = info log_max_days = 3 vhostHTTPPort = 10080 vhostHTTPSPort = 10443 frpc: loginFailExit = false serverAddr = '10.10.10.231' serverPort = 17000 start = ['svn', 'mssql', 'RDP'] [auth] method = 'token' token = '123456' [frpmgr] name = '阿里云' [log] level = 'info' maxDays = 3 to = 'C:/Program Files/FRP/logs/6e0b4fdd37fe3abdd22732d7057a3b2a.log' [[proxies]] localIP = '127.0.0.1' localPort = 80 name = 'svn' subdomain = 'svn' type = 'http' [[proxies]] localIP = '127.0.0.1' localPort = 1433 name = 'mssql' remotePort = 1220 type = 'tcp' [[proxies]] localIP = '127.0.0.1' name = 'RDP' type = 'tcp' [transport] tcpMux = true [transport.tls] disableCustomTLSFirstByte = true enable = true ### Logs frps 日志: 2025-11-12 19:11:29.967 [I] [frps/root.go:108] frps uses config file: /opt/www/frps/frp_0.64.0_linux_amd64/frps.toml 2025-11-12 19:11:30.157 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:17000 2025-11-12 19:11:30.158 [I] [frps/root.go:117] frps started successfully 2025-11-12 19:11:30.158 [I] [server/service.go:351] dashboard listen on 0.0.0.0:17500 2025-11-12 19:11:30.654 [I] [server/service.go:582] [b5e188771817f2ad] client login info: ip [10.10.10.232:11184] version [0.64.0] hostname [] os [windows] arch [amd64] 2025-11-12 19:11:30.809 [I] [proxy/tcp.go:82] [b5e188771817f2ad] [mssql] tcp proxy listen port [1220] 2025-11-12 19:11:30.809 [I] [server/control.go:399] [b5e188771817f2ad] new proxy [mssql] type [tcp] success 2025-11-12 19:11:30.809 [W] [server/control.go:394] [b5e188771817f2ad] new proxy [svn] type [http] error: type [http] not supported when vhost http port is not set 2025-11-12 19:11:30.809 [I] [proxy/tcp.go:82] [b5e188771817f2ad] [RDP] tcp proxy listen port [0] 2025-11-12 19:11:30.809 [I] [server/control.go:399] [b5e188771817f2ad] new proxy [RDP] type [tcp] success 2025-11-12 19:11:36.400 [I] [server/dashboard_api.go:107] http request: [/api/serverinfo] 2025-11-12 19:11:36.400 [I] [server/dashboard_api.go:100] http response [/api/serverinfo]: code [200] 2025-11-12 19:12:03.816 [W] [server/control.go:394] [b5e188771817f2ad] new proxy [svn] type [http] error: type [http] not supported when vhost http port is not set frpc 日志: 2025-11-12 19:25:51.346 [I] [client/service.go:319] [b5e188771817f2ad] try to connect to server... 2025-11-12 19:25:51.745 [I] [client/service.go:311] [b5e188771817f2ad] login to server success, get run id [b5e188771817f2ad] 2025-11-12 19:25:51.745 [I] [proxy/proxy_manager.go:177] [b5e188771817f2ad] proxy added: [svn mssql RDP] 2025-11-12 19:25:51.877 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:25:51.877 [I] [client/control.go:172] [b5e188771817f2ad] [mssql] start proxy success 2025-11-12 19:25:51.877 [I] [client/control.go:172] [b5e188771817f2ad] [RDP] start proxy success 2025-11-12 19:26:24.892 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:26:57.902 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:27:30.906 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:28:03.911 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:28:36.933 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:29:09.945 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:29:42.947 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:30:15.950 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:30:48.963 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:31:21.969 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:31:54.964 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:32:27.969 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:33:00.974 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:33:33.981 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:34:06.993 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:34:39.996 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:35:12.992 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:35:46.049 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:36:19.007 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:36:52.014 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:37:25.020 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:37:58.026 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:38:31.034 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:39:04.037 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:39:37.059 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set 2025-11-12 19:40:10.056 [W] [client/control.go:170] [b5e188771817f2ad] [svn] start error: type [http] not supported when vhost http port is not set ### Steps to reproduce 配置好以上文件后启动服务出现了这些问题 ### Affected area - [ ] Docs - [ ] Installation - [x] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [x] Others
Author
Owner

@Haitai-92 commented on GitHub (Nov 17, 2025):

有人知道么?

<!-- gh-comment-id:3540211723 --> @Haitai-92 commented on GitHub (Nov 17, 2025): 有人知道么?
Author
Owner

@github-actions[bot] commented on GitHub (Dec 2, 2025):

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

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

@Haitai-92 commented on GitHub (Dec 2, 2025):

您好,我最近正在吃BUG中,无法及时回复您的邮件。我将在BUG吃完后,及时给您回复。

<!-- gh-comment-id:3599600043 --> @Haitai-92 commented on GitHub (Dec 2, 2025): 您好,我最近正在吃BUG中,无法及时回复您的邮件。我将在BUG吃完后,及时给您回复。
Author
Owner

@qibin065965 commented on GitHub (Dec 16, 2025):

这个问题在issue中出现这么多次,为啥官方还不重视这个问题呢?

<!-- gh-comment-id:3659498180 --> @qibin065965 commented on GitHub (Dec 16, 2025): 这个问题在issue中出现这么多次,为啥官方还不重视这个问题呢?
Author
Owner

@qibin065965 commented on GitHub (Dec 16, 2025):

同样遇到这个问题,怎么样都无解,真是头疼,明明服务端已经是正常监听http端口了

2025-12-16 08:55:44.224 [I] [frps/root.go:108] frps uses config file: /etc/frp/frps.toml

2025-12-16 08:55:45.272 [I] [server/service.go:236] frps tcp listen on 0.0.0.0:7000

2025-12-16 08:55:45.272 [I] [server/service.go:304] http service listen on 0.0.0.0:9900

2025-12-16 08:55:45.272 [I] [server/service.go:318] https service listen on 0.0.0.0:9443

2025-12-16 08:55:45.272 [I] [frps/root.go:117] frps started successfully

客户端,死活提示缺vhost http port,真是服了:
start error: type [http] not supported when vhost http port is not set

客户端配置:

serverAddr = "xxx.com"
serverPort = 7000

proxies
name = "dev.http"
type = "http"
localIP = "127.0.0.1"
localPort = 8080
customDomains = ["dev.xxx.com"]
subdomain = "dev"

<!-- gh-comment-id:3659528322 --> @qibin065965 commented on GitHub (Dec 16, 2025): 同样遇到这个问题,怎么样都无解,真是头疼,明明服务端已经是正常监听http端口了 2025-12-16 08:55:44.224 [I] [frps/root.go:108] frps uses config file: /etc/frp/frps.toml 2025-12-16 08:55:45.272 [I] [server/service.go:236] frps tcp listen on 0.0.0.0:7000 2025-12-16 08:55:45.272 [I] [server/service.go:304] http service listen on 0.0.0.0:9900 2025-12-16 08:55:45.272 [I] [server/service.go:318] https service listen on 0.0.0.0:9443 2025-12-16 08:55:45.272 [I] [frps/root.go:117] frps started successfully 客户端,死活提示缺vhost http port,真是服了: start error: type [http] not supported when vhost http port is not set 客户端配置: serverAddr = "xxx.com" serverPort = 7000 [[proxies]] name = "dev.http" type = "http" localIP = "127.0.0.1" localPort = 8080 customDomains = ["dev.xxx.com"] subdomain = "dev"
Author
Owner

@github-actions[bot] commented on GitHub (Dec 31, 2025):

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

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

@Haitai-92 commented on GitHub (Dec 31, 2025):

您好,我最近正在吃BUG中,无法及时回复您的邮件。我将在BUG吃完后,及时给您回复。

<!-- gh-comment-id:3700935580 --> @Haitai-92 commented on GitHub (Dec 31, 2025): 您好,我最近正在吃BUG中,无法及时回复您的邮件。我将在BUG吃完后,及时给您回复。
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#3975
No description provided.