Làm đúng từng bước trên dashboard: zone chạy, HTTPS Full (strict), WAF log rồi block, cache không phá session.Click through the dashboard: a live zone, Full (strict) HTTPS, WAF log-then-block, cache that does not break sessions.ចុចតាម dashboard៖ zone កំពុងដំណើរការ, HTTPS Full (strict), WAF log-then-block, cache ដែលមិនបំបែក session។
Phần 2: SSL/TLS và kết nối originPart 2: SSL/TLS and origin connectionផ្នែក 2: SSL/TLS និងការតភ្ជាប់ origin
·
Bài 1/2 Lesson 1/2 មេរៀន 1/2
Chọn SSL/TLS mode phù hợpChoose the right SSL/TLS modeជ្រើសរើស SSL/TLS mode ត្រឹមត្រូវ
Bắt buộcRequiredចាំបាច់
Mục tiêuGoalគោលដៅ
Chọn SSL/TLS mode đúng — Full (strict) khi origin có cert hợp lệ — và bật Always Use HTTPS.Pick the right SSL/TLS mode — Full (strict) when the origin has a valid cert — and enable Always Use HTTPS.ជ្រើស SSL/TLS mode ត្រឹមត្រូវ — Full (strict) ពេល origin មាន cert ត្រឹមត្រូវ — ហើយបើក Always Use HTTPS។
Ai làmWho does thisអ្នកធ្វើ
DevOps / người quản lý chứng chỉ originDevOps / whoever manages the origin certificateDevOps / អ្នកគ្រប់គ្រង origin certificate
Thời gianTimeរយៈពេល
~20 phút~20 min~20 នាទី
Kết thúc bạn sẽ cóYou'll finish withពេលបញ្ចប់អ្នកនឹងមាន
Mode Full (strict); http:// redirect sang https://; không lỗi cert trên browser incognito.Mode Full (strict); http:// redirects to https://; no cert errors in an incognito browser.Mode Full (strict); http:// redirect ទៅ https://; គ្មាន cert error ក្នុង browser incognito។
Trước khi bắt đầuBefore you beginមុនពេលចាប់ផ្តើម
Record production đã Proxied (as-1-l2). Biết origin nhận HTTP hay HTTPS.Production records are Proxied (as-1-l2). You know whether origin expects HTTP or HTTPS.Production records ជា Proxied (as-1-l2)។ អ្នកដឹងថា origin រំពឹង HTTP ឬ HTTPS។
Gói / planPlanPlan
Encryption modes và Universal SSL có trên Free. Advanced Certificate Manager là add-on.Encryption modes and Universal SSL are on Free. Advanced Certificate Manager is an add-on.Encryption modes និង Universal SSL មានលើ Free។ Advanced Certificate Manager គឺ add-on។
Làm theo từng bướcFollow alongធ្វើតាមជំហាន
1SSL/TLS → Overview. Nếu origin có cert public hoặc Origin CA hợp lệ: chọn Full (strict).SSL/TLS → Overview. If origin has a public cert or a valid Origin CA cert: choose Full (strict).SSL/TLS → Overview។ បើ origin មាន public cert ឬ Origin CA cert ត្រឹមត្រូវ៖ ជ្រើស Full (strict)។
Bạn sẽ thấy: What you'll see: អ្នកនឹងឃើញ៖ Cloudflare xác thực chứng chỉ origin — không chấp nhận cert tự ký lung tung.Cloudflare validates the origin certificate — random self-signed certs fail.Cloudflare ផ្ទៀងផ្ទាត់ origin certificate — self-signed certs ចៃដន្យ fail។
Nhấp: Click: ចុច៖ Full (strict)Full (strict)Full (strict)
2Tránh Flexible nếu origin chỉ nhận HTTPS — dễ redirect loop.Avoid Flexible if origin is HTTPS-only — easy redirect loop.ចៀស Flexible បើ origin គឺ HTTPS-only — ងាយបាន redirect loop។
Bạn sẽ thấy: What you'll see: អ្នកនឹងឃើញ៖ Flexible = Cloudflare→origin bằng HTTP. Origin redirect lên HTTPS → Cloudflare lại gọi HTTP.Flexible = Cloudflare→origin over HTTP. Origin redirects to HTTPS → Cloudflare calls HTTP again.Flexible = Cloudflare→origin តាម HTTP។ Origin redirect ទៅ HTTPS → Cloudflare ហៅ HTTP ម្តងទៀត។
3Bật Always Use HTTPS và Automatic HTTPS Rewrites.Enable Always Use HTTPS and Automatic HTTPS Rewrites.បើក Always Use HTTPS និង Automatic HTTPS Rewrites។
Nhấp: Click: ចុច៖ SSL/TLS → Edge Certificates → Always Use HTTPS = OnSSL/TLS → Edge Certificates → Always Use HTTPS = OnSSL/TLS → Edge Certificates → Always Use HTTPS = On
Checkpoint: Checkpoint: Checkpoint៖ curl -sI http://www.example.com trả 301/302 tới https://. Browser incognito không cảnh báo cert.curl -sI http://www.example.com returns 301/302 to https://. Incognito browser shows no cert warning.curl -sI http://www.example.com ត្រឡប់ 301/302 ទៅ https://។ Browser incognito មិនបង្ហាញ cert warning។
Cẩn thậnWatch outប្រុងប្រយ័ត្ន
Full (không strict) chấp nhận cert tự ký — tiện lab, yếu cho production.Full (not strict) accepts self-signed certs — fine for a lab, weak for production.Full (មិន strict) ទទួល self-signed certs — ល្អសម្រាប់ lab, ខ្សោយសម្រាប់ production។
HSTS preload trước khi chắc HTTPS ổn — rollback khó.HSTS preload before HTTPS is stable makes rollback hard.HSTS preload មុន HTTPS ស្ថិរភាពធ្វើឲ្យ rollback ពិបាក។
MẹoTipsគន្លឹះ
Test sau mỗi đổi mode. Đây là lỗi #1 sau khi bật proxy.Test after every mode change. This is the #1 issue after enabling proxy.Test បន្ទាប់ពីប្តូរ mode រាល់លើក។ នេះគឺបញ្ហា #1 បន្ទាប់ពីបើក proxy។
Chưa có cert origin? Làm bài Origin CA (as-2-l2) rồi quay lại Full (strict).No origin cert yet? Do the Origin CA lesson (as-2-l2), then return to Full (strict).មិនទាន់មាន origin cert? ធ្វើ lesson Origin CA (as-2-l2), រួចត្រឡប់ទៅ Full (strict)។
Nguồn sự thật: tài liệu chính thức Cloudflare Developers (diễn giải, không sao chép nguyên văn). Nhãn menu dashboard có thể đổi — chọn mục tương đương gần nhất.Source of truth: official Cloudflare Developer docs (paraphrased, not copied verbatim). Dashboard labels shift — follow the nearest equivalent.ប្រភពពិត: official Cloudflare Developer docs (paraphrased)។ Dashboard labels ផ្លាស់ — តាម equivalent ជិតបំផុត។
Để mã hóa end-to-end, dùng Full (strict): cả kết nối visitor→Cloudflare và Cloudflare→origin đều HTTPS, origin cert được xác thực. Bật Always Use HTTPS để chuyển mọi HTTP sang HTTPS.For end-to-end encryption, use Full (strict): both visitor→Cloudflare and Cloudflare→origin use HTTPS with origin certificate validation. Enable Always Use HTTPS to redirect all HTTP to HTTPS.For end-to-end encryption, use Full (strict): both visitor→Cloudflare and Cloudflare→origin use HTTPS with origin certificate validation. Enable Always Use HTTPS to redirect all HTTP to HTTPS.
Ví dụ chính thức từ Cloudflare Resources — gợi ý theo chủ đề bài học trong lộ trình này.Official examples from Cloudflare Resources — matched to this lesson within this path.Official examples from Cloudflare Resources — matched to this lesson within this path.
Hướng dẫn giải phápSolution guideមគ្គុទ្ទេសករណ៍ដំណោះស្រាយApplication ServicesApplication ServicesApplication Services
Học xong hoặc muốn đổi hướng?Finished or want a different path?Finished or want a different path?
Ba lộ trình độc lập — mỗi lộ trình chỉ gồm bài học và tài liệu trong phạm vi đó. Chọn lộ trình khác khi sẵn sàng, không cần học song song.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.