[GH-ISSUE #1361] 可以多域名根据域名路由大到不同的应用吗? #1079

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

Originally created by @mengpengfei on GitHub (Aug 7, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1361

frpc.ini

[web01]
type = http
local_port = 80
custom_domains = web.yourdomain.com
locations = /

[web02]
type = http
local_port = 81
custom_domains = web.yourdomain.com
locations = /news,/about

这个能不能配置两个不同的域名,路由到具体的 web01或者web02

Originally created by @mengpengfei on GitHub (Aug 7, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1361 # frpc.ini [web01] type = http local_port = 80 custom_domains = web.yourdomain.com locations = / [web02] type = http local_port = 81 custom_domains = web.yourdomain.com locations = /news,/about 这个能不能配置两个不同的域名,路由到具体的 web01或者web02
Author
Owner

@fatedier commented on GitHub (Aug 7, 2019):

可以

<!-- gh-comment-id:519060644 --> @fatedier commented on GitHub (Aug 7, 2019): 可以
Author
Owner

@mengpengfei commented on GitHub (Aug 7, 2019):

可以
经常报
work connection closed

然后reconnect是怎么回事啊

<!-- gh-comment-id:519063705 --> @mengpengfei commented on GitHub (Aug 7, 2019): > 可以 经常报 work connection closed 然后reconnect是怎么回事啊
Author
Owner

@mengpengfei commented on GitHub (Aug 7, 2019):

2019/08/07 19:55:59 [W] [http.go:223] http: proxy error: no such domain: www.damagou.top /apiv1/jiyanRecognize.html
2019/08/07 19:56:00 [I] [service.go:349] client login info: ip [223.72.48.65:25307] version [0.27.0] hostname [] os [windows] arch [amd64]
2019/08/07 19:56:01 [I] [http.go:72] [6d7d84e8f2b09ce7] [webhttp] http proxy listen for host [www.damagou.top] location []
2019/08/07 19:56:01 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [webhttp] success
2019/08/07 19:56:01 [I] [tcp.go:66] [6d7d84e8f2b09ce7] [mysql] tcp proxy listen port [43306]
2019/08/07 19:56:01 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [mysql] success
2019/08/07 19:56:01 [I] [tcp.go:66] [6d7d84e8f2b09ce7] [remote-desktop] tcp proxy listen port [43389]
2019/08/07 19:56:01 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [remote-desktop] success
2019/08/07 19:56:01 [I] [https.go:47] [6d7d84e8f2b09ce7] [webssl] https proxy listen for host [www.damagou.top]
2019/08/07 19:56:01 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [webssl] success
2019/08/07 19:56:08 [I] [proxy.go:82] [6d7d84e8f2b09ce7] [webhttp] get a new work connection: [223.72.48.65:25307]
2019/08/07 19:56:11 [I] [proxy.go:82] [6d7d84e8f2b09ce7] [webhttp] get a new work connection: [223.72.48.65:25307]
2019/08/07 19:56:29 [W] [control.go:395] [6d7d84e8f2b09ce7] new proxy [mysql] error: port already used
2019/08/07 19:56:29 [W] [control.go:395] [6d7d84e8f2b09ce7] new proxy [remote-desktop] error: port already used
2019/08/07 19:56:29 [W] [control.go:278] [6d7d84e8f2b09ce7] write message to control connection error: session shutdown
2019/08/07 19:56:29 [I] [proxy.go:69] [6d7d84e8f2b09ce7] [mysql] proxy closing
2019/08/07 19:56:29 [I] [proxy.go:135] [6d7d84e8f2b09ce7] [mysql] listener is closed
2019/08/07 19:56:29 [I] [proxy.go:69] [6d7d84e8f2b09ce7] [remote-desktop] proxy closing
2019/08/07 19:56:29 [I] [proxy.go:135] [6d7d84e8f2b09ce7] [remote-desktop] listener is closed
2019/08/07 19:56:29 [I] [proxy.go:69] [6d7d84e8f2b09ce7] [webssl] proxy closing
2019/08/07 19:56:29 [I] [proxy.go:69] [6d7d84e8f2b09ce7] [webhttp] proxy closing
2019/08/07 19:56:29 [I] [control.go:350] [6d7d84e8f2b09ce7] client exit success
2019/08/07 19:56:29 [W] [http.go:223] http: proxy error: EOF
2019/08/07 19:56:29 [W] [http.go:223] http: proxy error: EOF
2019/08/07 19:56:29 [I] [proxy.go:135] [6d7d84e8f2b09ce7] [webssl] listener is closed
2019/08/07 19:56:31 [I] [service.go:349] client login info: ip [223.72.48.65:25312] version [0.27.0] hostname [] os [windows] arch [amd64]
2019/08/07 19:56:38 [W] [http.go:223] http: proxy error: no such domain: www.damagou.top /apiv1/userInfo.html
2019/08/07 19:56:38 [I] [tcp.go:66] [6d7d84e8f2b09ce7] [remote-desktop] tcp proxy listen port [43389]
2019/08/07 19:56:38 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [remote-desktop] success
2019/08/07 19:56:38 [I] [https.go:47] [6d7d84e8f2b09ce7] [webssl] https proxy listen for host [www.damagou.top]
2019/08/07 19:56:38 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [webssl] success
2019/08/07 19:56:38 [I] [tcp.go:66] [6d7d84e8f2b09ce7] [mysql] tcp proxy listen port [43306]
2019/08/07 19:56:38 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [mysql] success
2019/08/07 19:56:38 [I] [http.go:72] [6d7d84e8f2b09ce7] [webhttp] http proxy listen for host [www.damagou.top] location []
2019/08/07 19:56:38 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [webhttp] success

<!-- gh-comment-id:519064666 --> @mengpengfei commented on GitHub (Aug 7, 2019): 2019/08/07 19:55:59 [W] [http.go:223] http: proxy error: no such domain: www.damagou.top /apiv1/jiyanRecognize.html 2019/08/07 19:56:00 [I] [service.go:349] client login info: ip [223.72.48.65:25307] version [0.27.0] hostname [] os [windows] arch [amd64] 2019/08/07 19:56:01 [I] [http.go:72] [6d7d84e8f2b09ce7] [webhttp] http proxy listen for host [www.damagou.top] location [] 2019/08/07 19:56:01 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [webhttp] success 2019/08/07 19:56:01 [I] [tcp.go:66] [6d7d84e8f2b09ce7] [mysql] tcp proxy listen port [43306] 2019/08/07 19:56:01 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [mysql] success 2019/08/07 19:56:01 [I] [tcp.go:66] [6d7d84e8f2b09ce7] [remote-desktop] tcp proxy listen port [43389] 2019/08/07 19:56:01 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [remote-desktop] success 2019/08/07 19:56:01 [I] [https.go:47] [6d7d84e8f2b09ce7] [webssl] https proxy listen for host [www.damagou.top] 2019/08/07 19:56:01 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [webssl] success 2019/08/07 19:56:08 [I] [proxy.go:82] [6d7d84e8f2b09ce7] [webhttp] get a new work connection: [223.72.48.65:25307] 2019/08/07 19:56:11 [I] [proxy.go:82] [6d7d84e8f2b09ce7] [webhttp] get a new work connection: [223.72.48.65:25307] 2019/08/07 19:56:29 [W] [control.go:395] [6d7d84e8f2b09ce7] new proxy [mysql] error: port already used 2019/08/07 19:56:29 [W] [control.go:395] [6d7d84e8f2b09ce7] new proxy [remote-desktop] error: port already used 2019/08/07 19:56:29 [W] [control.go:278] [6d7d84e8f2b09ce7] write message to control connection error: session shutdown 2019/08/07 19:56:29 [I] [proxy.go:69] [6d7d84e8f2b09ce7] [mysql] proxy closing 2019/08/07 19:56:29 [I] [proxy.go:135] [6d7d84e8f2b09ce7] [mysql] listener is closed 2019/08/07 19:56:29 [I] [proxy.go:69] [6d7d84e8f2b09ce7] [remote-desktop] proxy closing 2019/08/07 19:56:29 [I] [proxy.go:135] [6d7d84e8f2b09ce7] [remote-desktop] listener is closed 2019/08/07 19:56:29 [I] [proxy.go:69] [6d7d84e8f2b09ce7] [webssl] proxy closing 2019/08/07 19:56:29 [I] [proxy.go:69] [6d7d84e8f2b09ce7] [webhttp] proxy closing 2019/08/07 19:56:29 [I] [control.go:350] [6d7d84e8f2b09ce7] client exit success 2019/08/07 19:56:29 [W] [http.go:223] http: proxy error: EOF 2019/08/07 19:56:29 [W] [http.go:223] http: proxy error: EOF 2019/08/07 19:56:29 [I] [proxy.go:135] [6d7d84e8f2b09ce7] [webssl] listener is closed 2019/08/07 19:56:31 [I] [service.go:349] client login info: ip [223.72.48.65:25312] version [0.27.0] hostname [] os [windows] arch [amd64] 2019/08/07 19:56:38 [W] [http.go:223] http: proxy error: no such domain: www.damagou.top /apiv1/userInfo.html 2019/08/07 19:56:38 [I] [tcp.go:66] [6d7d84e8f2b09ce7] [remote-desktop] tcp proxy listen port [43389] 2019/08/07 19:56:38 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [remote-desktop] success 2019/08/07 19:56:38 [I] [https.go:47] [6d7d84e8f2b09ce7] [webssl] https proxy listen for host [www.damagou.top] 2019/08/07 19:56:38 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [webssl] success 2019/08/07 19:56:38 [I] [tcp.go:66] [6d7d84e8f2b09ce7] [mysql] tcp proxy listen port [43306] 2019/08/07 19:56:38 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [mysql] success 2019/08/07 19:56:38 [I] [http.go:72] [6d7d84e8f2b09ce7] [webhttp] http proxy listen for host [www.damagou.top] location [] 2019/08/07 19:56:38 [I] [control.go:398] [6d7d84e8f2b09ce7] new proxy [webhttp] success
Author
Owner

@mengpengfei commented on GitHub (Aug 7, 2019):

什么情况?

<!-- gh-comment-id:519064902 --> @mengpengfei commented on GitHub (Aug 7, 2019): 什么情况?
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#1079
No description provided.