mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3639] type [http] error: type [http] not support when vhost_http_port is not set #2902
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#2902
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 @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/frp_0.51.3_linux_arm64 $ sudo ./frpc -c frpc.ini0.51.3
pi@raspberrypi:
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
@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
@fatedier commented on GitHub (Oct 9, 2023):
Your
vhost_http_portconfiguration 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.@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.
@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.
@share32 commented on GitHub (Nov 9, 2024):
could you please share your new config? i get the same issue, tks.
@heihei180 commented on GitHub (Nov 28, 2024):
@share32 frps version=0.61.0
hope will help you