> For the complete documentation index, see [llms.txt](https://www.axisnow.io/zh/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.axisnow.io/zh/docs/multi-edge/services/domains.md).

# 域名

业务主机名如何部署到每一家边缘

域名（Domain）是服务（Service）下由您持有的业务主机名，例如 `www.example.com`。它在 AxisNow 中只登记一次，由 AxisNow 部署到服务内每一家以配置同步（Provision）方式加入的边缘提供商上。

## 限制 <a href="#limits" id="limits"></a>

* 一个服务内的域名必须属于同一个主域名；要服务另一个主域名，请创建新的服务。
* 不支持主域名本身（apex，例如 `example.com`），请使用 `www.example.com` 这样的子域名。主域名按 DNS 标准不能配置 CNAME 记录，而聚合边缘依靠 CNAME 完成调度；把主域名跳转到 www 的做法见[常见问题](/zh/docs/multi-edge/faq.md#onboarding)。
* 不支持通配符域名（`*.example.com`），每个主机名需要单独添加。这条限制只针对域名，证书用一张通配符证书覆盖所有主机名即可，见[证书](/zh/docs/multi-edge/certificates.md#use-wildcard-certificates)。
* 服务的第一个域名是其他配置的锚点，不能单独删除。

## 添加域名 <a href="#add-domain" id="add-domain"></a>

在服务的 **域名** 标签页点击 **添加域名**，填写 **域名**，选择已有的 **源站** 或直接填写一个新地址。AxisNow 随即检查每一家 Provision 方式的边缘：**可用性** 表示该域名能否添加到这家边缘，**证书** 表示服务的证书是否覆盖它；有阻碍项时在对应行说明原因，**添加域名** 按钮不可用。

![](https://3062891322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKDgGNU6JXG7cqYCk2aCz%2Fuploads%2Fgit-blob-95665fb6c7d8dfcd5f89d7c12542011b8f81028b%2Fdomains-01.png?alt=media)

点击 **添加域名** 后，域名在各家边缘上并行部署，通常几分钟内完成。部分厂商要求验证域名所有权，该域名的部署状态旁会显示 **DNS 验证** 链接，点击可查看需要在您的 DNS 中添加的记录，AxisNow 自动检测，生效后继续部署。

{% hint style="info" %}
添加域名只是在各家边缘上配置好它，不会改变它的解析。域名真正开始走多边缘架构，是在您把它的 DNS 记录 CNAME 到服务 CNAME（Service CNAME）之后。
{% endhint %}

## 部署状态 <a href="#deployment-status" id="deployment-status"></a>

**域名** 表格的 **边缘提供商** 列按边缘显示部署状态：

* 配置中：正在这家边缘上配置，部分边缘提供商可能会要求做所有权验证。
* 已生效：已在这家边缘上生效。
* 失败：配置失败，悬停查看原因，点击行尾的 **重试部署** 重试。
* 更新中：正在同步源站等变更。

某一家边缘失败不影响其他家，路由规则只会把流量调度到已生效的边缘。

![](https://3062891322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKDgGNU6JXG7cqYCk2aCz%2Fuploads%2Fgit-blob-48ae6a68dc279702a4fa49d54b4009d82326cf5e%2Fdomains-02.png?alt=media)

![](https://3062891322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKDgGNU6JXG7cqYCk2aCz%2Fuploads%2Fgit-blob-1cd908b2e3c9f9d51de4c15b66981ce0fecc300a%2Fdomains-03.png?alt=media)

## 更换源站 <a href="#change-origin" id="change-origin"></a>

鼠标移到域名行的 **源站** 列，点击编辑图标可以更换这个域名的源站，AxisNow 把新的回源配置同步到各家边缘。同一个域名按路径回源到不同源站，见[按路径回源](/zh/docs/multi-edge/services/domains/path-based-origin.md)；修改源站本身的地址或协议，见[源站](/zh/docs/multi-edge/services/origins.md)。

## 删除域名 <a href="#delete-domain" id="delete-domain"></a>

行尾的 **删除域名** 可以删除域名，并选择是否同时清理它在各家边缘上的配置。删除前请确认该域名的 DNS 记录已不再指向服务 CNAME。详见[删除服务](/zh/docs/multi-edge/services/delete.md)。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.axisnow.io/zh/docs/multi-edge/services/domains.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
