[GH-ISSUE #1196] 不能同时设置custom_domains和subdomain #937

Closed
opened 2026-05-05 12:35:51 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @wbhinspector on GitHub (Apr 13, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1196

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 将会直接关闭。)

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

What version of frp are you using (./frpc -v or ./frps -v)?
0.26.0

What operating system and processor architecture are you using (go env)?

Configures you used:
服务器端我配置了:
subdomain_host = xxxx.com

客户端我配置了
subdomain= aaa

这样aaa.xxxx.com可以正常访问
但我还有另外一个域名,所以我就在客户端又加了
custom_domains = aaa.yyyy.com
这时候启动客户端,就报错了
报配置冲突 config conflict
我的目的就是两个网址都能同时指向一个服务,我应该如何正确配置?

Steps to reproduce the issue:
1.
2.
3.

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)

Originally created by @wbhinspector on GitHub (Apr 13, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1196 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 将会直接关闭。) Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST **What version of frp are you using (./frpc -v or ./frps -v)?** 0.26.0 **What operating system and processor architecture are you using (`go env`)?** **Configures you used:** 服务器端我配置了: subdomain_host = xxxx.com 客户端我配置了 subdomain= aaa 这样aaa.xxxx.com可以正常访问 但我还有另外一个域名,所以我就在客户端又加了 custom_domains = aaa.yyyy.com 这时候启动客户端,就报错了 报配置冲突 config conflict 我的目的就是两个网址都能同时指向一个服务,我应该如何正确配置? **Steps to reproduce the issue:** 1. 2. 3. **Describe the results you received:** **Describe the results you expected:** **Additional information you deem important (e.g. issue happens only occasionally):** **Can you point out what caused this issue (optional)**
Author
Owner

@wbhinspector commented on GitHub (Apr 13, 2019):

必须改成这样呀
subdomain= aaa
custom_domains = aaab.yyyy.com
这样才能正常访问,aaa.xxx.com和aaab.yyyy.com都正常了。

<!-- gh-comment-id:482804070 --> @wbhinspector commented on GitHub (Apr 13, 2019): 必须改成这样呀 subdomain= aaa custom_domains = aaab.yyyy.com 这样才能正常访问,aaa.xxx.com和aaab.yyyy.com都正常了。
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#937
No description provided.