[GH-ISSUE #5054] multiple vhosts port frps #3973

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

Originally created by @Kirutian on GitHub (Nov 13, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/5054

Bug Description

Currently unable to add multiple vhostHTTPS ports

Nextcloud needs multiple ports from a domain to configure it properly. When I try to add multiple vhost ports, the server does not start.

frpc Version

0.65.0

frps Version

0.65.0

System Architecture

rocky9/linux/amd64

Configurations

frps.toml

bindPort = 7227
auth.token = "secret"
vhostHTTPPort = 80
vhostHTTPSPort = 443
vhostHTTPSPort = 8443

Logs

json: cannot unmarshal string into Go value of type v1.ServerConfig

Steps to reproduce

  1. Create toml file
  2. add more than a single vhostHTTPSPort definition
  3. attempt to start server
    ...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Kirutian on GitHub (Nov 13, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/5054 ### Bug Description Currently unable to add multiple vhostHTTPS ports Nextcloud needs multiple ports from a domain to configure it properly. When I try to add multiple vhost ports, the server does not start. ### frpc Version 0.65.0 ### frps Version 0.65.0 ### System Architecture rocky9/linux/amd64 ### Configurations # frps.toml bindPort = 7227 auth.token = "secret" vhostHTTPPort = 80 vhostHTTPSPort = 443 vhostHTTPSPort = 8443 ### Logs json: cannot unmarshal string into Go value of type v1.ServerConfig ### Steps to reproduce 1. Create toml file 2. add more than a single vhostHTTPSPort definition 3. attempt to start server ... ### Affected area - [ ] Docs - [x] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [x] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:31:43 -06:00
Author
Owner

@Kirutian commented on GitHub (Nov 23, 2025):

I've not been able to find a way to do this. Reviewing the source code I can not add this function without significant changes. Im going to start working on an alternative method.

<!-- gh-comment-id:3567569975 --> @Kirutian commented on GitHub (Nov 23, 2025): I've not been able to find a way to do this. Reviewing the source code I can not add this function without significant changes. Im going to start working on an alternative method.
Author
Owner

@Kirutian commented on GitHub (Nov 29, 2025):

There are forks that add the range:tcp_port definition. I wonder if there is a way to do this without forking? Can any one provide any insight?

<!-- gh-comment-id:3591068575 --> @Kirutian commented on GitHub (Nov 29, 2025): There are forks that add the range:tcp_port definition. I wonder if there is a way to do this without forking? Can any one provide any insight?
Author
Owner

@Kirutian commented on GitHub (Nov 29, 2025):

It appears before the shift to toml from ini, the range:tcp_port definition is no longer possible. I wonder what the replacement is.

<!-- gh-comment-id:3591262116 --> @Kirutian commented on GitHub (Nov 29, 2025): It appears before the shift to toml from ini, the range:tcp_port definition is no longer possible. I wonder what the replacement is.
Author
Owner

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

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

<!-- gh-comment-id:3649994785 --> @github-actions[bot] commented on GitHub (Dec 14, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
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#3973
No description provided.