[GH-ISSUE #2501] Allow multiple HTTP proxies on different ports #1989

Open
opened 2026-05-05 13:16:56 -06:00 by gitea-mirror · 16 comments
Owner

Originally created by @nonnorm on GitHub (Jul 30, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2501

The solution you want

The ability to have multiple HTTP proxies on different remote ports.

Alternatives considered

Giving the HTTPS type proxy the same options as HTTP type proxies, but that would still only allow 2 remote ports.

How to implement this function

Remove vhost_http_port and replace it with remote_port on the client, like with TCP proxies.

Application scenarios of this function

Anything requiring multiple HTTP proxies on different ports, (e.g. a Synapse server)

Originally created by @nonnorm on GitHub (Jul 30, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2501 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> **The solution you want** <!--A clear and concise description of the solution you want. --> The ability to have multiple HTTP proxies on different remote ports. **Alternatives considered** <!--A clear and concise description of any alternative solutions or features you have considered. --> Giving the HTTPS type proxy the same options as HTTP type proxies, but that would still only allow 2 remote ports. **How to implement this function** <!--Implementation steps for the solution you want. --> Remove `vhost_http_port` and replace it with `remote_port` on the client, like with TCP proxies. **Application scenarios of this function** <!--Make a clear and concise description of the application scenario of the solution you want. --> Anything requiring multiple HTTP proxies on different ports, (e.g. a Synapse server)
gitea-mirror added the
future
label 2026-05-05 13:16:56 -06:00
Author
Owner

@blizard863 commented on GitHub (Aug 1, 2021):

I don't know this scenarios, maybe it's not a common feature.

<!-- gh-comment-id:890452057 --> @blizard863 commented on GitHub (Aug 1, 2021): I don't know this scenarios, maybe it's not a common feature.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 1, 2021):

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

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

@nonnorm commented on GitHub (Sep 1, 2021):

bump

<!-- gh-comment-id:909781256 --> @nonnorm commented on GitHub (Sep 1, 2021): bump
Author
Owner

@green-codes commented on GitHub (Sep 5, 2021):

I'm running many http proxies on the same host with no problem. Just use type=http(s) and different ports for each service. remember to set vhost in frps

<!-- gh-comment-id:913099137 --> @green-codes commented on GitHub (Sep 5, 2021): I'm running many http proxies on the same host with no problem. Just use type=http(s) and different ports for each service. remember to set vhost in frps
Author
Owner

@github-actions[bot] commented on GitHub (Oct 6, 2021):

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

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

@nonnorm commented on GitHub (Oct 6, 2021):

bump

<!-- gh-comment-id:935158819 --> @nonnorm commented on GitHub (Oct 6, 2021): bump
Author
Owner

@github-actions[bot] commented on GitHub (Nov 7, 2021):

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

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

@nonnorm commented on GitHub (Nov 7, 2021):

bump

<!-- gh-comment-id:962533026 --> @nonnorm commented on GitHub (Nov 7, 2021): bump
Author
Owner

@github-actions[bot] commented on GitHub (Dec 8, 2021):

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

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

@nonnorm commented on GitHub (Dec 8, 2021):

bump

<!-- gh-comment-id:988404545 --> @nonnorm commented on GitHub (Dec 8, 2021): bump
Author
Owner

@github-actions[bot] commented on GitHub (Jan 9, 2022):

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

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

@nonnorm commented on GitHub (Jan 9, 2022):

bump

<!-- gh-comment-id:1008301922 --> @nonnorm commented on GitHub (Jan 9, 2022): bump
Author
Owner

@nonnorm commented on GitHub (Feb 3, 2022):

@green-codes, yes, but can't you only have one vhost? Doesn't that mean that all of the proxies would go to the same port?

<!-- gh-comment-id:1029006688 --> @nonnorm commented on GitHub (Feb 3, 2022): @green-codes, yes, but can't you only have one vhost? Doesn't that mean that all of the proxies would go to the same port?
Author
Owner

@fatedier commented on GitHub (Feb 9, 2022):

It's not necessary to always set type http for your service. Just use tcp instead.

<!-- gh-comment-id:1033430528 --> @fatedier commented on GitHub (Feb 9, 2022): It's not necessary to always set type `http` for your service. Just use `tcp` instead.
Author
Owner

@nonnorm commented on GitHub (Feb 9, 2022):

Yes, however you do need type http to set headers, right? My situation is that I have 2 http proxies that need to have different headers set on them.

<!-- gh-comment-id:1033697934 --> @nonnorm commented on GitHub (Feb 9, 2022): Yes, however you do need type `http` to set headers, right? My situation is that I have 2 `http` proxies that need to have different headers set on them.
Author
Owner

@fatedier commented on GitHub (Feb 9, 2022):

We want to support this scenario in frp v2 since it's very different with current architecture.

<!-- gh-comment-id:1033764192 --> @fatedier commented on GitHub (Feb 9, 2022): We want to support this scenario in frp v2 since it's very different with current architecture.
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#1989
No description provided.