[GH-ISSUE #2530] 或许: subdomain_host与custom_domain之间存在误会? #2009

Closed
opened 2026-05-05 13:17:58 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @wxy545812093 on GitHub (Aug 15, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2530

[REQUIRED] hat version of frp are you using

Version: 0.37.1

[REQUIRED] What operating system and processor architecture are you using
Server: [root@server_com frp]# uname -a
Linux server_com 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux amd64
Client: [root@client_com frp]# uname -a
Linux client_com 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux amd64

[REQUIRED] description of errors

confile

[root@client_com frp]# cat frpc.ini
[common]
server_addr = 1.2.3.4
server_port = 7000
token = it.is.a.secret

;[ssh]
;type = tcp
;local_ip = 127.0.0.1
;local_port = 22
;remote_port = 6000

[test1]
type = http
local_ip = 127.0.0.1
local_port = 80
custom_domains = a.net.demo.com

#if enable "subdomain", "http://proxy.net.demo.com" is working(meet expectations)
;subdomain = proxy

------------------------------------------------------------------------------------------------------------

[root@server_com frp]# cat frps.ini
[common]
bind_port = 7000
subdomain_host = net.demo.com
token = it.is.a.secret
vhost_http_port = 80
;custom_404_page = /usr/local/frp/404.html

log file

[root@server_com frp]# ./frps
2021/08/15 05:49:15 [I] [service.go:449] [98d8f21ea47d0c7d] client login info: ip [1.1.1.1:64620] version [0.37.1] hostname [client_com] os [linux] arch [amd64]
2021/08/15 05:49:16 [W] [control.go:440] [98d8f21ea47d0c7d] new proxy [test1] error: proxy [test1] domain conf check error: custom domain [a.net.demo.com] should not belong to subdomain_host [net.demo.com]

------------------------------------------------------------------------------------------------------------

[root@client_com frp]# ./frpc
2021/08/15 13:49:15 [I] [service.go:304] [98d8f21ea47d0c7d] login to server success, get run id [98d8f21ea47d0c7d], server udp port [0]
2021/08/15 13:49:15 [I] [proxy_manager.go:144] [98d8f21ea47d0c7d] proxy added: [test1]
2021/08/15 13:49:16 [W] [control.go:178] [98d8f21ea47d0c7d] [test1] start error: proxy [test1] domain conf check error: custom domain [a.net.demo.com] should not belong to subdomain_host [net.demo.com]

DNS :
*.net.demo.com --> 1.2.3.4 (server_com)
net.demo.com --> 1.2.3.4 (server_com)

Originally created by @wxy545812093 on GitHub (Aug 15, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2530 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> <!-- ⚠️⚠️ Incomplete reports will be marked as invalid, and closed, with few exceptions ⚠️⚠️ --> <!-- in addition, please use search well so that the same solution can be found in the feedback, we will close it directly --> <!-- for convenience of differentiation, use FRPS or FRPC to refer to the FRP server or client --> **[REQUIRED] hat version of frp are you using** <!-- Use ./frpc -v or ./frps -v --> Version: 0.37.1 **[REQUIRED] What operating system and processor architecture are you using** **Server**: [root@server_com frp]# uname -a Linux server_com 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux amd64 **Client**: [root@client_com frp]# uname -a Linux client_com 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux amd64 **[REQUIRED] description of errors** **confile** <!-- Please pay attention to hiding the token, server_addr and other privacy information --> [root@client_com frp]# cat frpc.ini [common] server_addr = 1.2.3.4 server_port = 7000 token = it.is.a.secret ;[ssh] ;type = tcp ;local_ip = 127.0.0.1 ;local_port = 22 ;remote_port = 6000 [test1] type = http local_ip = 127.0.0.1 local_port = 80 custom_domains = a.net.demo.com ***#if enable "subdomain", "http://proxy.net.demo.com" is working(meet expectations)*** ;subdomain = proxy #### ------------------------------------------------------------------------------------------------------------ [root@server_com frp]# cat frps.ini [common] bind_port = 7000 subdomain_host = net.demo.com token = it.is.a.secret vhost_http_port = 80 ;custom_404_page = /usr/local/frp/404.html **log file** <!-- If the file is too large, use Pastebin, for example https://pastebin.ubuntu.com/ --> [root@server_com frp]# ./frps 2021/08/15 05:49:15 [I] [service.go:449] [98d8f21ea47d0c7d] client login info: ip [1.1.1.1:64620] version [0.37.1] hostname [client_com] os [linux] arch [amd64] 2021/08/15 05:49:16 [W] [control.go:440] [98d8f21ea47d0c7d] new proxy [test1] error: proxy [test1] domain conf check error: custom domain [a.net.demo.com] should not belong to subdomain_host [net.demo.com] #### ------------------------------------------------------------------------------------------------------------ [root@client_com frp]# ./frpc 2021/08/15 13:49:15 [I] [service.go:304] [98d8f21ea47d0c7d] login to server success, get run id [98d8f21ea47d0c7d], server udp port [0] 2021/08/15 13:49:15 [I] [proxy_manager.go:144] [98d8f21ea47d0c7d] proxy added: [test1] 2021/08/15 13:49:16 [W] [control.go:178] [98d8f21ea47d0c7d] [test1] start error: proxy [test1] domain conf check error: custom domain [a.net.demo.com] should not belong to subdomain_host [net.demo.com] **DNS** : \*.net.demo.com --> 1.2.3.4 (server_com) net.demo.com --> 1.2.3.4 (server_com)
Author
Owner

@wxy545812093 commented on GitHub (Aug 15, 2021):

The problem has been completely solved.

https://s3.bmp.ovh/imgs/2021/08/7ef00d25f5267721.png

frp

<!-- gh-comment-id:899096846 --> @wxy545812093 commented on GitHub (Aug 15, 2021): ## The problem has been completely solved. **https://s3.bmp.ovh/imgs/2021/08/7ef00d25f5267721.png** ![frp](https://img04.sogoucdn.com/app/a/100520146/733b71e77ef00d25f5267721900bae9c)
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#2009
No description provided.