mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2801] [Feature Request] How to expose multiple local web servers with a single public domain #2239
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#2239
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 @JimBeam2019 on GitHub (Feb 15, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2801
Describe the feature request
Hi there, I've experimented with the "Visit your web service in LAN by custom domains" example and it worked well with one local web server, but I was wondering if it is possible to expose multiple local web servers, say hundreds of them, with one public domain. Please any advice will be appreciated.
Describe alternatives you've considered
No response
Affected area
@fatedier commented on GitHub (Feb 15, 2022):
Try https://github.com/fatedier/frp#load-balancing
@JimBeam2019 commented on GitHub (Feb 15, 2022):
Thank you for your quick reply @fatedier , though I think there is a misunderstanding.
What I meant was the vhost can only connect to one local web server, but it fails to connect to a second one. It simply returned the error message
[W] [control.go:447] [128472af6ade081b] new proxy [web] error: router config conflict. So, my question is that if I would like to set a proxy server in the cloud with a public domain to expose multiple local web servers, how can I do that using frp?@fatedier commented on GitHub (Feb 15, 2022):
load-balancingis what you want. Requests to same domain will route to different local web server round robin.@JimBeam2019 commented on GitHub (Feb 15, 2022):
Excuse me, I don't really get what you mean. The
load-balancingseems to be running in the local web server by configuring the frpc.ini file. Are you suggesting doing the same configuration on the frps.ini file in public vhost?@github-actions[bot] commented on GitHub (Mar 18, 2022):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@albenex commented on GitHub (Apr 16, 2022):
I've same request as OP:
I have different web services (dump1090 daemon, home assistant interface, car controller interface etc..)
FRP works great tunneling SSH connections and first web-service configured inside FRPC.ini on Server "B".
further web-services configured won't work.
desired behavior would be configuring FRPC.ini like this:
load balancing feature is meant for a number of duplicate web services hooked to different ports but exposed with same one.
here we're requesting multiple web services hooked to different ports, exposed to different ports.
@fatedier commented on GitHub (Apr 16, 2022):
@albenex commented on GitHub (Apr 18, 2022):
thank you very much! it worked
@didibaba commented on GitHub (Oct 31, 2023):
@albenex how to configure frps.ini of the server for your case?