[GH-ISSUE #1099] Proxy by host-header #859

Closed
opened 2026-05-05 12:32:51 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @rmchale on GitHub (Feb 24, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1099

I am looking to setup two endpoints on port 80 but different by host header / domain name.

I get this error

2019/02/24 20:18:47 [W] [control.go:391] [f70d3e6dd2b31258] new proxy [test1] error: port already used                          
[test1]
type = tcp
local_ip = 10.10.0.100
local_port = 3000
remote_port = 80
custom_domains=test1.domain.com

[test1]
type = tcp
local_ip = 10.10.0.100
local_port = 3001
remote_port = 80
custom_domains=test2.domain.com
Originally created by @rmchale on GitHub (Feb 24, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1099 I am looking to setup two endpoints on port 80 but different by host header / domain name. I get this error ``` 2019/02/24 20:18:47 [W] [control.go:391] [f70d3e6dd2b31258] new proxy [test1] error: port already used ``` ``` [test1] type = tcp local_ip = 10.10.0.100 local_port = 3000 remote_port = 80 custom_domains=test1.domain.com [test1] type = tcp local_ip = 10.10.0.100 local_port = 3001 remote_port = 80 custom_domains=test2.domain.com ```
Author
Owner

@fatedier commented on GitHub (Feb 26, 2019):

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)

Read doc first.

<!-- gh-comment-id:467398922 --> @fatedier commented on GitHub (Feb 26, 2019): Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly. (为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。) Read doc first.
Author
Owner

@rmchale commented on GitHub (Feb 26, 2019):

Ok this is a feature request. Proxy by host header. I would be like to setup an endpoint on the same port and Frps should use the domain / host-header to direct traffic to a the appropriate backend.

If I try this currently it says the port is already used.

<!-- gh-comment-id:467402621 --> @rmchale commented on GitHub (Feb 26, 2019): Ok this is a feature request. Proxy by host header. I would be like to setup an endpoint on the same port and Frps should use the domain / host-header to direct traffic to a the appropriate backend. If I try this currently it says the port is already used.
Author
Owner
<!-- gh-comment-id:467408825 --> @fatedier commented on GitHub (Feb 26, 2019): https://github.com/fatedier/frp#visit-your-web-service-in-lan-by-custom-domains
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#859
No description provided.