[GH-ISSUE #5097] 这个问题我看都提了几百遍了,为啥还是会出现啊?start error: type [http] not supported when vhost http port is not set #4002

Open
opened 2026-05-05 14:32:37 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @qibin065965 on GitHub (Dec 16, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/5097

Bug Description

同样遇到这个问题,怎么样都无解,真是头疼,明明服务端已经是正常监听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"

frpc Version

0.65.0

frps Version

snowdreamtech/frps 0.65.0

System Architecture

windows/amd64

Configurations

同样遇到这个问题,怎么样都无解,真是头疼,明明服务端已经是正常监听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:7700

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"

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 @qibin065965 on GitHub (Dec 16, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/5097 ### Bug Description 同样遇到这个问题,怎么样都无解,真是头疼,明明服务端已经是正常监听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" ### frpc Version 0.65.0 ### frps Version snowdreamtech/frps 0.65.0 ### System Architecture windows/amd64 ### Configurations 同样遇到这个问题,怎么样都无解,真是头疼,明明服务端已经是正常监听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:7700 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" ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@xiaoshumiao6 commented on GitHub (Dec 18, 2025):

server 段配置这个字段了吗?
vhostHTTPPort = 8080

<!-- gh-comment-id:3668121805 --> @xiaoshumiao6 commented on GitHub (Dec 18, 2025): server 段配置这个字段了吗? vhostHTTPPort = 8080
Author
Owner

@dengxiwang commented on GitHub (Dec 18, 2025):

服务端需要配置

<!-- gh-comment-id:3668139407 --> @dengxiwang commented on GitHub (Dec 18, 2025): 服务端需要配置
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#4002
No description provided.