新用戶新用戶即享 DNS 與 CDN 免費方案。建立帳號

Add a site

Onboard a site with the add-domain wizard: pick a plan, choose CNAME or nameserver setup, configure origins and update DNS.

6 分鐘閱讀 更新於 2026年10月6日

This page shows how to put a website on Yeap Cloud CDN. The Add domain wizard walks you through choosing a plan, an onboarding method and your origin settings. The last step is pointing your DNS at the CDN.

Before you begin

  • Have the domain you want to accelerate ready, for example example.com. You need to be able to edit its DNS records or its nameservers.
  • Your origin server must be reachable on a public IP address or hostname and serve HTTP or HTTPS on the port you will configure.
  • If you pick a paid plan, make sure you can pay for it from your account.

Step 1: Open the wizard

  1. Sign in to the console and go to CDN管理 > 域名管理 (CDN > Domains, /cdn/domains).
  2. Click 添加域名 (Add domain) to open the wizard at /cdn/domains/new.

The wizard has five steps:

  1. 基础信息 (Basics)
  2. 套餐选择 (Plan)
  3. 接入方式 (Onboarding method)
  4. 源站设置 (Origin)
  5. 接入指引 (DNS instructions)

Step 2: Basics

FieldDescription
域名 (Domain)The site's main domain, for example example.com. You add individual hostnames such as www.example.com in a later step.
加速线路 / 分组 (Line / group)The delivery line this site uses. Once you select one, the console shows its CNAME target (接入 CNAME 目标). If you see "该分组尚未配置接入域名" (no CNAME target configured), choose another line or contact support.
启用SSL (Enable SSL)On by default. You request certificates for each hostname on the SSL/TLS tab after onboarding. See SSL/TLS.
启用WAF (Enable WAF)Turns the WAF on. It only takes effect on plans that include the WAF (Pro and Enterprise).
高级代理设置 (Advanced proxy settings)Origin HTTP version (HTTP版本), WebSocket support (WebSocket支持) and Proxy timeout in seconds (代理超时). You can change these later on the site's Network (网络) tab.

Click 下一步 (Next).

Step 3: Choose a plan

  1. Select a plan card: Free (免费版), Starter (起步版), Pro (专业版) or Enterprise (企业版). For plan quotas, see the CDN overview.
  2. For a paid plan, choose a billing cycle (计费周期).
  3. Click 下一步 (Next). For paid plans the button reads 创建订单并下一步 (Create order and continue). This step creates the site and its plan subscription:
    • Free: the subscription takes effect immediately and you move to the next step.
    • Paid plans: a pending invoice is created. Click 前往支付 (Go to payment) and pay. Then return to the wizard and click 我已支付,刷新状态 (I have paid, refresh). You can continue once the subscription is active.
Note

Each plan subscription can be bound to only one site. To onboard several sites, choose a plan for each of them.

Step 4: Choose an onboarding method

MethodWhen to use itWhat you do
CNAME 接入 (CNAME setup)Your DNS stays with your current providerAdd one CNAME record per hostname at your current DNS provider, pointing to the target shown in the console
NS 接入 (Nameserver setup)You want Yeap DNS to host the domain's DNSThe platform creates a DNS zone for the domain (if none exists) and adds the CNAME records the CDN needs. You change the domain's nameservers at your registrar to the ones shown in the console
Tip

Many DNS providers do not allow a CNAME on the zone apex (example.com). To accelerate the apex domain, use nameserver setup or your provider's CNAME flattening (ALIAS/ANAME) feature.

For managing zones and records in Yeap DNS, see the DNS docs.

Step 5: Configure the origin

Each 主机配置 (Host configuration) block is one hostname that serves traffic:

FieldDescription
主机名 (Hostname)The full hostname, for example www.example.com. If you leave it empty, the domain from Step 2 is used.
源站地址 (Origin address)The origin's IP address or hostname, for example 203.0.113.10 or origin.example.com.
协议 (Protocol)Whether the CDN connects to the origin over HTTP or HTTPS.
端口 (Port)The origin port, for example 80 or 443.
负载模式 (Load mode)How requests are spread when a hostname has several origin addresses: 轮询 (round robin) or IP Hash, which always sends a given visitor IP to the same origin.

To add more hostnames, click 添加主机配置 (Add host configuration). The number of hostnames is capped by your plan's hostnames-per-site quota. When you are done, click 提交 (Submit).

Step 6: Update DNS

After you submit, the wizard shows 接入指引 (DNS instructions).

CNAME setup: the list shows the CNAME target for each hostname. Click 复制 (Copy) and add the record at your DNS provider. For example:

text
www.example.com.   CNAME   <CNAME target shown in the console>

Nameserver setup: the page lists the NS 服务器 (nameservers, use the values shown in the console) and the 已生成的CNAME记录 (generated CNAME records). Change the domain's nameservers at your registrar to the listed ones. If the DNS records could not be created automatically, the page shows the reason.

To confirm the change is live, click DNS检查 (DNS check). It queries a public resolver for the current CNAME or NS answer. How long DNS changes take depends on the old record's TTL and on your registrar. It usually ranges from a few minutes to a few hours.

Site status

The 状态 (Status) column of the Domains list shows each site's status:

StatusMeaning
未完成 (Incomplete)The site exists, but its subscription is not active yet or it has no hostnames
活跃 (Active)The subscription is active and at least one hostname is configured. Edge nodes serve the site with its configuration
已暂停 (Suspended), 未激活 (Inactive), 已终止 (Terminated)The site is not being served because of its subscription or an administrative action
Note

Active means the CDN side is ready. It does not check whether your DNS points to the CDN yet. Visitor traffic only flows through the CDN after your DNS change takes effect.

Managing origins after onboarding

You can change hostnames and origins at any time on the site's 源站设置 (Origin) tab. Click 添加源站 (Add origin) or edit an existing entry:

FieldDescription
主机名 (Hostname)The subdomain prefix, for example www. Use @ for the domain itself and * for a wildcard.
回源地址 (Origin addresses)One or more origin addresses (IP or hostname), each with an optional port. Click 添加源站地址 (Add origin address) to add more. If you list several addresses, give them all the same port.
回源协议 (Origin protocol)HTTP, HTTPS or 自动 (Auto). With Auto, the SSL/TLS encryption mode decides: 完全 (Full) and 完全(严格) (Full strict) use HTTPS, while 灵活 (Flexible) and 关闭 (Off) use HTTP.
负载均衡模式 (Load-balancing mode)轮询 (round robin) or IP Hash.
优先级 (Priority)Lower numbers come first.
启用 (Enabled)When off, the hostname is no longer deployed to the edge.

Origin parameters that apply to the whole site are set on the Network (网络) tab: origin HTTP version, proxy timeout, keep-alive and maximum request body size. They apply to every hostname on the site.

By default, the Host header sent to your origin is the hostname the visitor requested. Your origin must recognize that hostname, for example through a matching virtual host in your web server. To rewrite the origin Host header or route specific paths to a different origin, use Page rules.

Tip

Once everything is configured, open the site's 诊断 (Diagnostics) tab, pick a hostname and run a check. It quickly flags DNS that has not taken effect, an unreachable origin, origin redirect loops and SSL mode mismatches.

Next steps

這個頁面對你有幫助嗎?