mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2530] 或许: subdomain_host与custom_domain之间存在误会? #2009
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#2009
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 @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)
@wxy545812093 commented on GitHub (Aug 15, 2021):
The problem has been completely solved.
https://s3.bmp.ovh/imgs/2021/08/7ef00d25f5267721.png