Phần 1: Đưa domain lên Cloudflare Part 1: Onboard your domain · Bài 2/2 Lesson 2/2

Bật proxy (orange cloud) đúng record Enable proxy on the right records

Proxy các record phục vụ HTTP/HTTPS public (website, API gateway). Giữ DNS only cho record chỉ dùng nội bộ hoặc dịch vụ đặc biệt. Proxy records serving public HTTP/HTTPS (website, API gateway). Keep DNS only for internal-only or special services.

Các bước thực hiện Step-by-step

  1. Mở DNS → Records cho zone vừa onboard. Open DNS → Records for your onboarded zone.
  2. Bật proxy (đám mây cam) cho record website/API public (A, AAAA, CNAME). Enable proxy (orange cloud) on public website/API records (A, AAAA, CNAME).
  3. Giữ DNS only (xám) cho MX, internal hostname, record không cần qua edge. Keep DNS only (grey) for MX, internal hostnames, records that should not hit the edge.
  4. Verify bằng `dig` hoặc browser — traffic HTTP/S phải qua Cloudflare. Verify with `dig` or browser — HTTP/S traffic should pass through Cloudflare.

Giải thích chi tiết Detailed explanation

Proxy là công tắc bật WAF, cache, SSL edge. Không proxy = Cloudflare chỉ trả lời DNS, không bảo vệ hay tăng tốc HTTP. Proxy is the switch for WAF, cache, and edge SSL. Without proxy, Cloudflare only answers DNS — no HTTP protection or acceleration.

Lưu ý (best practices) Note (best practices)

Sau khi DNS ổn định, kiểm tra kỹ từ nhiều vị trí và cho mọi dịch vụ quan trọng trước khi bật proxy — rồi mới tận dụng thêm tính năng bảo mật/hiệu năng của Cloudflare. After DNS is stable, test thoroughly from multiple locations and for all critical services before enabling proxy — then explore Cloudflare security and performance features.

Nguồn: Source: DNS — Key considerations and best practices summary DNS — Key considerations and best practices summary

Ví dụ triển khai (Cloudflare Resources) Deployment examples (Cloudflare Resources)

Tutorial, solution guide và reference từ developers.cloudflare.com/resources ↗ — gợi ý theo chủ đề bài học. Tutorials, solution guides, and reference docs from developers.cloudflare.com/resources ↗ — matched to this lesson topic.

Duyệt toàn bộ catalog → Browse full catalog →

Tài liệu Cloudflare Developers Cloudflare Developer docs

Sản phẩm liên quan Related products

Đọc thêm trong hub → Read more in the hub →