[GH-ISSUE #3639] type [http] error: type [http] not support when vhost_http_port is not set #2902

Closed
opened 2026-05-05 13:52:30 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @manishbuttan on GitHub (Oct 3, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3639

Bug Description

Hello, I have put the vhost_http_port in my ini file for the server, but the server still gives this errror. What am I doing wrong? The server is AWS EC2 Amazon 2023 linux. The client is running on rpi cm4 with the latest raspbian OS.

frps.ini:
[common]
bind_port = 7000
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = xyz@pi
vhost_http_port = 8080
subdomain_host = 12.12.12.12.xip.io #ip changed here

[common]
server_addr = 12.12.12.12 #ip changed
server_port = 7000

[some_name]
type = http
local_ip = 192.168.1.42
local_port = 8000
subdomain = some_name

frpc Version

0.51.3

frps Version

0.51.3

System Architecture

Amazon AWS linux 2023 and Rpi raspbian os

Configurations

Provided in message

Logs

pi@raspberrypi:/frp_0.51.3_linux_arm64 $ ./frpc -v
0.51.3
pi@raspberrypi:
/frp_0.51.3_linux_arm64 $ sudo ./frpc -c frpc.ini
2023/10/03 08:58:10 [I] [root.go:220] start frpc service for config file [frpc.ini]
2023/10/03 08:58:10 [I] [service.go:301] [fe5d7d28f65bdd24] login to server success, get run id [fe5d7d28f65bdd24]
2023/10/03 08:58:10 [I] [proxy_manager.go:150] [fe5d7d28f65bdd24] proxy added: [cms_main_rpi_0001]
2023/10/03 08:58:10 [W] [control.go:170] [fe5d7d28f65bdd24] [cms_main_rpi_0001] start error: type [http] not support when vhost_http_port is not set

$ sudo ./frps -c frps.ini
2023/10/03 03:27:59 [I] [root.go:204] frps uses config file: frps.ini
2023/10/03 03:28:00 [I] [service.go:206] frps tcp listen on 0.0.0.0:7000
2023/10/03 03:28:00 [I] [service.go:318] Dashboard listen on 0.0.0.0:7500
2023/10/03 03:28:00 [I] [root.go:213] frps started successfully
2023/10/03 03:28:10 [I] [service.go:539] [fe5d7d28f65bdd24] client login info: ip [58.84.62.172:22244] version [0.51.3] hostname [] os [linux] arch [arm64]
2023/10/03 03:28:10 [W] [control.go:493] [fe5d7d28f65bdd24] new proxy [cms_main_rpi_0001] type [http] error: type [http] not support 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 @manishbuttan on GitHub (Oct 3, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3639 ### Bug Description Hello, I have put the vhost_http_port in my ini file for the server, but the server still gives this errror. What am I doing wrong? The server is AWS EC2 Amazon 2023 linux. The client is running on rpi cm4 with the latest raspbian OS. frps.ini: [common] bind_port = 7000 dashboard_port = 7500 dashboard_user = admin dashboard_pwd = xyz@pi vhost_http_port = 8080 subdomain_host = 12.12.12.12.xip.io #ip changed here [common] server_addr = 12.12.12.12 #ip changed server_port = 7000 [some_name] type = http local_ip = 192.168.1.42 local_port = 8000 subdomain = some_name ### frpc Version 0.51.3 ### frps Version 0.51.3 ### System Architecture Amazon AWS linux 2023 and Rpi raspbian os ### Configurations Provided in message ### Logs pi@raspberrypi:~/frp_0.51.3_linux_arm64 $ ./frpc -v 0.51.3 pi@raspberrypi:~/frp_0.51.3_linux_arm64 $ sudo ./frpc -c frpc.ini 2023/10/03 08:58:10 [I] [root.go:220] start frpc service for config file [frpc.ini] 2023/10/03 08:58:10 [I] [service.go:301] [fe5d7d28f65bdd24] login to server success, get run id [fe5d7d28f65bdd24] 2023/10/03 08:58:10 [I] [proxy_manager.go:150] [fe5d7d28f65bdd24] proxy added: [cms_main_rpi_0001] 2023/10/03 08:58:10 [W] [control.go:170] [fe5d7d28f65bdd24] [cms_main_rpi_0001] start error: type [http] not support when vhost_http_port is not set ---- $ sudo ./frps -c frps.ini 2023/10/03 03:27:59 [I] [root.go:204] frps uses config file: frps.ini 2023/10/03 03:28:00 [I] [service.go:206] frps tcp listen on 0.0.0.0:7000 2023/10/03 03:28:00 [I] [service.go:318] Dashboard listen on 0.0.0.0:7500 2023/10/03 03:28:00 [I] [root.go:213] frps started successfully 2023/10/03 03:28:10 [I] [service.go:539] [fe5d7d28f65bdd24] client login info: ip [58.84.62.172:22244] version [0.51.3] hostname [] os [linux] arch [arm64] 2023/10/03 03:28:10 [W] [control.go:493] [fe5d7d28f65bdd24] new proxy [cms_main_rpi_0001] type [http] error: type [http] not support when vhost_http_port is not set ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [X] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:52:30 -06:00
Author
Owner

@manishbuttan commented on GitHub (Oct 3, 2023):

In the comment, the config was:

frps.ini:
[common]
bind_port = 7000
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = xyz@pi
vhost_http_port = 8080
subdomain_host = 12.12.12.12.xip.io #ip changed here

frpc.ini
[common]
server_addr = 12.12.12.12 #ip changed
server_port = 7000

[some_name]
type = http
local_ip = 192.168.1.42
local_port = 8000
subdomain = some_name

<!-- gh-comment-id:1744109811 --> @manishbuttan commented on GitHub (Oct 3, 2023): In the comment, the config was: --- frps.ini: [common] bind_port = 7000 dashboard_port = 7500 dashboard_user = admin dashboard_pwd = xyz@pi vhost_http_port = 8080 subdomain_host = 12.12.12.12.xip.io #ip changed here frpc.ini [common] server_addr = 12.12.12.12 #ip changed server_port = 7000 [some_name] type = http local_ip = 192.168.1.42 local_port = 8000 subdomain = some_name
Author
Owner

@fatedier commented on GitHub (Oct 9, 2023):

Your vhost_http_port configuration is not taking effect, and I'm not sure what the reason is. It could be due to using the wrong configuration file or something similar.

<!-- gh-comment-id:1752266390 --> @fatedier commented on GitHub (Oct 9, 2023): Your `vhost_http_port` configuration is not taking effect, and I'm not sure what the reason is. It could be due to using the wrong configuration file or something similar.
Author
Owner

@manishbuttan commented on GitHub (Oct 9, 2023):

Thank you for your reply fatedier. I tried this again with a registered domain as the subdomain host and it worked fine. Thank you for writing this software.

<!-- gh-comment-id:1752347112 --> @manishbuttan commented on GitHub (Oct 9, 2023): Thank you for your reply fatedier. I tried this again with a registered domain as the subdomain host and it worked fine. Thank you for writing this software.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 9, 2023):

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

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

@share32 commented on GitHub (Nov 9, 2024):

some_name

could you please share your new config? i get the same issue, tks.

<!-- gh-comment-id:2466075811 --> @share32 commented on GitHub (Nov 9, 2024): > some_name could you please share your new config? i get the same issue, tks.
Author
Owner

@heihei180 commented on GitHub (Nov 28, 2024):

@share32 frps version=0.61.0


vhostHTTPPort  = 7001
bindPort = 7000
subDomainHost = "localhost"

hope will help you

<!-- gh-comment-id:2505148073 --> @heihei180 commented on GitHub (Nov 28, 2024): @share32 frps version=0.61.0 ```toml vhostHTTPPort = 7001 bindPort = 7000 subDomainHost = "localhost" ``` hope will help you
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#2902
No description provided.