{"id":89268,"date":"2026-08-02T18:57:19","date_gmt":"2026-08-02T10:57:19","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89268.html"},"modified":"2026-08-02T18:57:19","modified_gmt":"2026-08-02T10:57:19","slug":"%e4%b8%ba-github-pages-%e5%8d%9a%e5%ae%a2%e9%85%8d%e7%bd%ae%e8%87%aa%e5%ae%9a%e4%b9%89%e5%9f%9f%e5%90%8d%e4%b8%8e-cloudflare-%e5%8a%a0%e9%80%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89268.html","title":{"rendered":"\u4e3a GitHub Pages \u535a\u5ba2\u914d\u7f6e\u81ea\u5b9a\u4e49\u57df\u540d\u4e0e Cloudflare \u52a0\u901f"},"content":{"rendered":"<h3>\u524d\u8a00<\/h3>\n<p>GitHub Pages \u9ed8\u8ba4\u63d0\u4f9b yourname.github.io \u8fd9\u6837\u7684\u4e8c\u7ea7\u57df\u540d&#xff0c;\u867d\u7136\u80fd\u7528&#xff0c;\u4f46\u4e0d\u591f\u4e13\u4e1a\u3002\u914d\u7f6e\u81ea\u5df1\u7684\u57df\u540d\u4e0d\u4ec5\u80fd\u8ba9\u535a\u5ba2\u66f4\u6709\u8fa8\u8bc6\u5ea6&#xff0c;\u8fd8\u80fd\u914d\u5408 Cloudflare \u83b7\u5f97 CDN \u52a0\u901f\u3001DDoS \u9632\u62a4\u3001HTTPS \u52a0\u5bc6\u7b49\u4e00\u7cfb\u5217\u597d\u5904\u3002<\/p>\n<p>\u672c\u6587\u8bb0\u5f55\u4ece\u963f\u91cc\u4e91\u8d2d\u4e70\u57df\u540d\u5230Cloudflare \u6258\u7ba1 DNS&#xff0c;\u518d\u5230GitHub Pages \u7ed1\u5b9a\u81ea\u5b9a\u4e49\u57df\u540d\u7684\u5b8c\u6574\u6d41\u7a0b\u3002<\/p>\n<p>\u6574\u4f53\u6d41\u7a0b&#xff1a;\u963f\u91cc\u4e91&#xff08;\u57df\u540d\u6ce8\u518c\u5546&#xff09; \u2192 Cloudflare&#xff08;DNS \u6258\u7ba1 \/ CDN&#xff09; \u2192 GitHub Pages&#xff08;\u535a\u5ba2\u6258\u7ba1&#xff09;<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u5728\u963f\u91cc\u4e91\u8d2d\u4e70\u57df\u540d<\/h3>\n<h4>1.1 \u641c\u7d22\u5e76\u9009\u8d2d\u57df\u540d<\/h4>\n<p>\u767b\u5f55\u963f\u91cc\u4e91\u5b98\u7f51&#xff0c;\u8fdb\u5165&#034;\u57df\u540d\u6ce8\u518c&#034;\u9875\u9762&#xff0c;\u641c\u7d22\u4f60\u60f3\u8981\u7684\u57df\u540d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105703-6a6f227f158b9.png\" alt=\"14.png\" \/><\/p>\n<p>\u9009\u8d2d\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\u9996\u9009 .com \/ .dev \/ .me \u7b49\u5e38\u89c1\u540e\u7f00<\/li>\n<li>\u57df\u540d\u5c3d\u91cf\u7b80\u77ed\u3001\u6613\u8bb0\u3001\u4e0e\u535a\u5ba2\u54c1\u724c\u4e00\u81f4<\/li>\n<li>\u9996\u5e74\u4ef7\u683c\u901a\u5e38\u8f83\u4f4e&#xff0c;\u7eed\u8d39\u4ef7\u683c\u4f1a\u8d35\u4e00\u4e9b<\/li>\n<\/ul>\n<h4>1.2 \u5b8c\u6210\u5b9e\u540d\u8ba4\u8bc1<\/h4>\n<p>\u6839\u636e\u5de5\u4fe1\u90e8\u8981\u6c42&#xff0c;\u56fd\u5185\u6ce8\u518c\u57df\u540d\u5fc5\u987b\u5b8c\u6210\u5b9e\u540d\u8ba4\u8bc1\u3002\u63d0\u4ea4\u8eab\u4efd\u8bc1\u4fe1\u606f\u540e\u901a\u5e38 1-3 \u4e2a\u5de5\u4f5c\u65e5\u5ba1\u6838\u901a\u8fc7\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105704-6a6f2280a047e.png\" alt=\"16.png\" \/><\/p>\n<h4>1.3 \u8d2d\u4e70\u57df\u540d\u4ee5\u53ca\u7b49\u5f85\u5ba1\u67e5<\/h4>\n<p>\u6309\u7167\u6b65\u9aa4\u8d2d\u4e70\u57df\u540d\u540e&#xff0c;\u7b49\u5f85\u82e5\u5e72\u5c0f\u65f6&#xff0c;\u76f4\u5230\u5ba1\u6838\u901a\u8fc7<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105706-6a6f22821e32a.png\" alt=\"image.png\" \/><\/p>\n<h4>1.4 \u4fee\u6539 DNS \u670d\u52a1\u5668&#xff08;\u5173\u952e\u6b65\u9aa4&#xff09;<\/h4>\n<p>\u57df\u540d\u8d2d\u4e70\u5b8c\u6210\u540e&#xff0c;\u4e0d\u8981\u76f4\u63a5\u5728\u963f\u91cc\u4e91\u505a\u89e3\u6790&#xff0c;\u6211\u4eec\u8981\u628a DNS \u4ea4\u7ed9 Cloudflare \u7ba1\u7406\u3002<\/p>\n<p>\u8fdb\u5165\u963f\u91cc\u4e91\u63a7\u5236\u53f0 \u2192 \u57df\u540d\u5217\u8868 \u2192 \u7ba1\u7406 \u2192 DNS \u4fee\u6539&#xff0c;\u5c06 DNS \u670d\u52a1\u5668\u6539\u4e3a Cloudflare \u540e\u7eed\u63d0\u4f9b\u7684\u5730\u5740\u3002<\/p>\n<p>\u8fd9\u4e00\u6b65\u4f1a\u5728\u540e\u9762\u7684 Cloudflare \u914d\u7f6e\u4e2d\u83b7\u5f97\u5177\u4f53\u5730\u5740\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u5728 Cloudflare \u6dfb\u52a0\u7ad9\u70b9<\/h3>\n<h4>2.1 \u6ce8\u518c \/ \u767b\u5f55 Cloudflare<\/h4>\n<p>\u8bbf\u95ee Cloudflare \u5b98\u7f51 \u6ce8\u518c\u8d26\u53f7&#xff0c;\u6dfb\u52a0\u7ad9\u70b9&#xff0c;\u514d\u8d39\u5957\u9910&#xff08;Free Plan&#xff09;\u8db3\u4ee5\u6ee1\u8db3\u4e2a\u4eba\u535a\u5ba2\u9700\u6c42\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105707-6a6f22836b862.png\" alt=\"12.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105708-6a6f2284bc307.png\" alt=\"55.png\" \/><\/p>\n<h4>2.2 \u6dfb\u52a0\u7ad9\u70b9<\/h4>\n<p>\u70b9\u51fb Add a Site&#xff0c;\u8f93\u5165\u4f60\u7684\u57df\u540d&#xff08;\u4f8b\u5982 example.com&#xff09;&#xff0c;Cloudflare \u4f1a\u81ea\u52a8\u626b\u63cf\u73b0\u6709 DNS \u8bb0\u5f55\u3002<\/p>\n<h4>2.3 \u626b\u63cf\u5e76\u5bfc\u5165 DNS \u8bb0\u5f55<\/h4>\n<p>Cloudflare \u4f1a\u626b\u63cf\u57df\u540d\u7684\u73b0\u6709 DNS \u8bb0\u5f55&#xff08;\u6b64\u65f6\u626b\u63cf\u7ed3\u679c\u4e3a\u7a7a&#xff0c;\u56e0\u4e3a\u963f\u91cc\u4e91\u4e0a\u8fd8\u6ca1\u6709\u914d\u89e3\u6790&#xff09;\u3002\u626b\u63cf\u5b8c\u6210\u540e\u70b9\u51fb Continue\u3002<\/p>\n<h4>2.4 \u4fee\u6539\u57df\u540d\u670d\u52a1\u5668&#xff08;Nameservers&#xff09;<\/h4>\n<p>Cloudflare \u4f1a\u5206\u914d\u4e24\u4e2a Nameserver \u5730\u5740&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p>fiona.ns.cloudflare.com<br \/>\nmax.ns.cloudflare.com<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105710-6a6f22861fed8.png\" alt=\"image.png\" \/><\/p>\n<p>\u56de\u5230\u963f\u91cc\u4e91\u63a7\u5236\u53f0 \u2192 \u57df\u540d\u5217\u8868 \u2192 \u70b9\u51fb&#034;\u7ba1\u7406&#034; \u2192 DNS \u4fee\u6539 \u2192 \u5c06 DNS \u670d\u52a1\u5668\u6539\u4e3a\u8fd9\u4e24\u4e2a\u5730\u5740\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105711-6a6f22877fdbd.png\" alt=\"13.png\" \/><\/p>\n<p>DNS \u4fee\u6539\u540e&#xff0c;\u5168\u7f51\u751f\u6548\u901a\u5e38\u9700\u8981 \u51e0\u5206\u949f\u5230 48 \u5c0f\u65f6&#xff0c;\u4f46\u5927\u591a\u6570\u60c5\u51b5\u4e0b 10~30 \u5206\u949f\u5373\u53ef\u751f\u6548\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u914d\u7f6e DNS \u89e3\u6790\u8bb0\u5f55<\/h3>\n<h4>3.1 \u6dfb\u52a0 GitHub Pages \u89e3\u6790<\/h4>\n<p>\u5728 Cloudflare Dashboard \u2192 DNS \u2192 Records&#xff0c;\u6dfb\u52a0\u4ee5\u4e0b\u8bb0\u5f55&#xff1a;<\/p>\n<table>\n<tr>\u7c7b\u578b\u540d\u79f0\u5185\u5bb9\u4ee3\u7406\u72b6\u6001<\/tr>\n<tbody>\n<tr>\n<td>A<\/td>\n<td>&#064;<\/td>\n<td>185.199.108.153<\/td>\n<td>\u5f00\u542f\u4ee3\u7406&#xff08;\u6a59\u8272\u4e91\u6735&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>A<\/td>\n<td>&#064;<\/td>\n<td>185.199.109.153<\/td>\n<td>\u5f00\u542f\u4ee3\u7406&#xff08;\u6a59\u8272\u4e91\u6735&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>A<\/td>\n<td>&#064;<\/td>\n<td>185.199.110.153<\/td>\n<td>\u5f00\u542f\u4ee3\u7406&#xff08;\u6a59\u8272\u4e91\u6735&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>A<\/td>\n<td>&#064;<\/td>\n<td>185.199.111.153<\/td>\n<td>\u5f00\u542f\u4ee3\u7406&#xff08;\u6a59\u8272\u4e91\u6735&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>CNAME<\/td>\n<td>www<\/td>\n<td>yourname.github.io<\/td>\n<td>\u5f00\u542f\u4ee3\u7406&#xff08;\u6a59\u8272\u4e91\u6735&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5982\u679c\u4f7f\u7528 www \u5b50\u57df\u540d\u505a\u8df3\u8f6c&#xff0c;\u4e5f\u53ef\u4ee5\u5c06 www \u7684 Proxy \u5173\u95ed&#xff0c;\u8bbe\u7f6e Page Rule \u505a 301 \u91cd\u5b9a\u5411\u5230\u88f8\u57df\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105712-6a6f2288db559.png\" alt=\"image.png\" \/><\/p>\n<h4>3.2 \u5f00\u542f\u4e25\u683c SSL\/TLS \u6a21\u5f0f<\/h4>\n<p>\u5728 Cloudflare \u4fa7\u8fb9\u680f \u2192 SSL\/TLS \u2192 Overview&#xff1a;<\/p>\n<ul>\n<li>\u5c06\u6a21\u5f0f\u6539\u4e3a Full (strict)<\/li>\n<li>\u8fd9\u6837 Cloudflare \u5230\u8bbf\u5ba2\u4e4b\u95f4\u662f HTTPS&#xff0c;Cloudflare \u5230 GitHub Pages \u4e4b\u95f4\u4e5f\u662f HTTPS<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105714-6a6f228a3167b.png\" alt=\"image.png\" \/><\/p>\n<h4>3.3 \u5f00\u542f Always Use HTTPS&#xff08;\u53ef\u9009&#xff09;<\/h4>\n<p>SSL\/TLS \u2192 Edge Certificates \u2192 \u5f00\u542f Always Use HTTPS&#xff0c;\u81ea\u52a8\u5c06\u6240\u6709 HTTP \u8bf7\u6c42\u91cd\u5b9a\u5411\u5230 HTTPS\u3002<\/p>\n<p>![[file-20260609181430427.png]]<\/p>\n<hr \/>\n<h3>\u56db\u3001\u5728 GitHub Pages \u7ed1\u5b9a\u81ea\u5b9a\u4e49\u57df\u540d<\/h3>\n<h4>4.1 \u8fdb\u5165\u4ed3\u5e93\u8bbe\u7f6e<\/h4>\n<p>\u6253\u5f00\u4f60\u7684 GitHub Pages \u4ed3\u5e93 \u2192 Settings \u2192 Pages\u3002<\/p>\n<h4>4.2 \u586b\u5199\u81ea\u5b9a\u4e49\u57df\u540d<\/h4>\n<p>\u5728 Custom domain \u4e2d\u8f93\u5165\u4f60\u7684\u57df\u540d&#xff08;\u4f8b\u5982 example.com&#xff09;&#xff0c;\u70b9\u51fb Save\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105715-6a6f228b8067e.png\" alt=\"image.png\" \/><\/p>\n<h5>4.3 Custom domain \u7684\u4f5c\u7528<\/h5>\n<p>\u4ee5\u6211\u7684\u535a\u5ba2\u4e3a\u4f8b&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u9ed8\u8ba4\u90e8\u7f72\u5730\u5740&#xff1a;https:\/\/pc-blog.github.io\/next\/<\/p>\n<\/li>\n<li>\n<p>\u8bbf\u95ee\u535a\u5ba2\u9700\u8981\u5e26\u4e0a \/next \u8def\u5f84\u524d\u7f00<\/p>\n<\/li>\n<\/ul>\n<h5>\u914d\u7f6e Custom domain \u540e\u7684\u53d8\u5316<\/h5>\n<table>\n<tr>\u914d\u7f6e\u9879\u914d\u7f6e\u524d\u914d\u7f6e\u540e<\/tr>\n<tbody>\n<tr>\n<td>\u8bbf\u95ee\u5730\u5740<\/td>\n<td>https:\/\/pc-blog.github.io\/next\/<\/td>\n<td>https:\/\/lxpavilion.top\/<\/td>\n<\/tr>\n<tr>\n<td>\u8def\u5f84\u524d\u7f00<\/td>\n<td>\u9700\u8981 \/next<\/td>\n<td>\u65e0\u9700 \/next&#xff0c;\u76f4\u63a5\u6839\u8def\u5f84\u8bbf\u95ee<\/td>\n<\/tr>\n<tr>\n<td>URL \u7f8e\u89c2\u5ea6<\/td>\n<td>\u4e00\u822c<\/td>\n<td>\u4e13\u4e1a\u3001\u7b80\u6d01<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>\u6838\u5fc3\u673a\u5236\u8bf4\u660e<\/h5>\n<li>\n<p>\u57df\u540d\u7ed1\u5b9a \u5728 GitHub Pages \u7684 Custom domain \u4e2d\u586b\u5165 lxpavilion.top \u540e&#xff0c;GitHub \u4f1a\u81ea\u52a8\u5728\u4ed3\u5e93\u6839\u76ee\u5f55\u751f\u6210\u4e00\u4e2a CNAME \u6587\u4ef6&#xff0c;\u5185\u5bb9\u4e3a lxpavilion.top\u3002\u8fd9\u4e2a\u6587\u4ef6\u544a\u8bc9 GitHub&#xff1a;\u201c\u5f53\u7528\u6237\u8bbf\u95ee\u8fd9\u4e2a\u57df\u540d\u65f6&#xff0c;\u4ece\u6b64\u4ed3\u5e93\u63d0\u4f9b\u5185\u5bb9\u3002\u201d<\/p>\n<\/li>\n<li>\n<p>\u8def\u5f84\u91cd\u5b9a\u5411&#xff08;\u5173\u952e&#xff09;<\/p>\n<ul>\n<li>\n<p>\u914d\u7f6e\u524d&#xff1a;GitHub Pages \u9ed8\u8ba4\u5c06\u4ed3\u5e93\u5185\u5bb9\u6258\u7ba1\u5728 \/{\u4ed3\u5e93\u540d} \u8def\u5f84\u4e0b<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u540e&#xff1a;GitHub Pages \u4f1a\u5c06\u4ed3\u5e93\u5185\u5bb9\u6258\u7ba1\u5230\u57df\u540d\u6839\u8def\u5f84 (\/)<\/p>\n<\/li>\n<li>\n<p>\u8fd9\u610f\u5473\u7740&#xff1a;\u539f\u672c\u9700\u8981 \/next\/xxx \u624d\u80fd\u8bbf\u95ee\u7684\u8d44\u6e90&#xff0c;\u73b0\u5728\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7 \/xxx \u8bbf\u95ee<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u57df\u540d\u89e3\u6790\u5fc5\u987b\u6b63\u786e<\/p>\n<p>\u6ce8\u610f&#xff1a;\u5373\u4f7f DNS \u89e3\u6790\u6b63\u786e\u6307\u5411\u4e86 GitHub Pages \u7684 IP&#xff0c;\u5982\u679c\u4e0d\u5728 GitHub \u7684 Custom domain \u4e2d\u586b\u5199\u57df\u540d&#xff0c;GitHub \u4e5f\u4e0d\u4f1a\u54cd\u5e94\u8fd9\u4e2a\u57df\u540d\u7684\u8bf7\u6c42\u3002Custom domain \u662f\u544a\u8bc9 GitHub \u201c\u5141\u8bb8\u8fd9\u4e2a\u57df\u540d\u8bbf\u95ee\u6211\u7684\u4ed3\u5e93\u201d\u7684\u5f00\u5173\u3002<\/p>\n<\/li>\n<h5>\u9700\u8981\u540c\u6b65\u4fee\u6539\u7684\u5185\u5bb9<\/h5>\n<p>\u7531\u4e8e\u535a\u5ba2\u7684\u8bbf\u95ee\u8def\u5f84\u4ece \/next\/ \u53d8\u6210\u4e86 \/&#xff0c;\u9879\u76ee\u4e2d\u6240\u6709\u8d44\u6e90\u7684\u5f15\u7528\u8def\u5f84\u90fd\u9700\u8981\u76f8\u5e94\u8c03\u6574&#xff1a;<\/p>\n<p>\u9700\u8981\u4fee\u6539\u7684\u6587\u4ef6\/\u4f4d\u7f6e&#xff1a;<\/p>\n<table>\n<tr>\u8d44\u6e90\u7c7b\u578b\u4fee\u6539\u524d\u4fee\u6539\u540e<\/tr>\n<tbody>\n<tr>\n<td>\u56fe\u7247\u8def\u5f84<\/td>\n<td>\/next\/images\/logo.png<\/td>\n<td>\/images\/logo.png<\/td>\n<\/tr>\n<tr>\n<td>CSS \u8def\u5f84<\/td>\n<td>\/next\/css\/style.css<\/td>\n<td>\/css\/style.css<\/td>\n<\/tr>\n<tr>\n<td>JS \u8def\u5f84<\/td>\n<td>\/next\/js\/main.js<\/td>\n<td>\/js\/main.js<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u90e8\u94fe\u63a5<\/td>\n<td>\/next\/about.html<\/td>\n<td>\/about.html<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>4.4 \u7b49\u5f85 DNS \u6821\u9a8c<\/h4>\n<p>GitHub \u4f1a\u81ea\u52a8\u9a8c\u8bc1\u57df\u540d\u6240\u6709\u6743\u3002\u5982\u679c DNS \u5df2\u7ecf\u751f\u6548&#xff0c;\u4f1a\u51fa\u73b0\u7eff\u8272\u63d0\u793a\u3002\u5982\u679c\u63d0\u793a\u672a\u9a8c\u8bc1&#xff0c;\u7b49\u5f85 DNS \u4f20\u64ad\u540e\u518d\u6b21\u70b9\u51fb Save\u3002<\/p>\n<h4>4.5 \u52fe\u9009 Enforce HTTPS&#xff08;\u53ef\u9009&#xff09;<\/h4>\n<p>GitHub Pages \u4f1a\u4e3a\u4f60\u7684\u81ea\u5b9a\u4e49\u57df\u540d\u81ea\u52a8\u7533\u8bf7 Let\u2019s Encrypt \u8bc1\u4e66\u3002\u7b49\u5f85\u51e0\u5206\u949f\u540e&#xff0c;\u52fe\u9009 Enforce HTTPS\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u7531\u4e8e\u6b64\u65f6\u6d41\u91cf\u7ecf\u8fc7 Cloudflare&#xff0c;\u800cCloudflare\u6258\u7ba1\u670d\u52a1\u4ee5\u53ca\u5f00\u542f\u4e86\u76f8\u5173\u529f\u80fd&#xff0c;\u90a3\u4e48 Enforce HTTPS\u5c31\u65e0\u6cd5\u542f\u52a8&#xff0c;\u8fd9\u662f\u6b63\u5e38\u73b0\u8c61<\/p>\n<h4>4.6 CNAME \u6587\u4ef6&#xff08;\u91cd\u8981&#xff09;<\/h4>\n<p>\u5982\u679c\u4f60\u4f7f\u7528 GitHub \u7684\u81ea\u52a8 Pages \u6784\u5efa\u548c\u90e8\u7f72&#xff0c;\u7ed1\u5b9a\u57df\u540d\u540e GitHub \u4f1a\u81ea\u52a8\u5728\u4ed3\u5e93\u6839\u76ee\u5f55\u751f\u6210 CNAME \u6587\u4ef6&#xff0c;\u5185\u5bb9\u4e3a\u4f60\u7684\u57df\u540d\u3002\u5efa\u8bae\u5c06\u8fd9\u4e2a\u6587\u4ef6\u4fdd\u7559\u5728\u7248\u672c\u63a7\u5236\u4e2d&#xff0c;\u5426\u5219\u6bcf\u6b21\u90e8\u7f72\u90fd\u8981\u624b\u52a8\u914d\u7f6eCustom domain \u5b57\u6bb5\u3002<\/p>\n<p>![[file-20260609181656981.png]]<\/p>\n<h4>4.7 \u6f14\u793a<\/h4>\n<p>\u53ef\u4ee5\u770b\u5230&#xff0c;\u901a\u8fc7\u81ea\u5b9a\u4e49\u57df\u540d\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee\u6211\u7684\u535a\u5ba2\u7f51\u7ad9<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105716-6a6f228cd01b9.png\" alt=\"image.png\" \/><\/p>\n<hr \/>\n<p>\u4f60\u7684\u535a\u5ba2\u73b0\u5728\u65e2\u6709\u81ea\u5b9a\u4e49\u57df\u540d\u7684\u4e13\u4e1a\u611f&#xff0c;\u53c8\u4eab\u53d7\u4e86 Cloudflare \u7684\u5168\u7403\u52a0\u901f\u548c\u5b89\u5168\u9632\u62a4\u3002&#x1f680;<\/p>\n<hr \/>\n<p>&#x1f4dd; \u672c\u6587\u53d1\u5e03\u4e8e \u680f\u8f69\u9601<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00<br \/>\nGitHub Pages \u9ed8\u8ba4\u63d0\u4f9b yourname.github.io \u8fd9\u6837\u7684\u4e8c\u7ea7\u57df\u540d&#xff0c;\u867d\u7136\u80fd\u7528&#xff0c;\u4f46\u4e0d\u591f\u4e13\u4e1a\u3002\u914d\u7f6e\u81ea\u5df1\u7684\u57df\u540d\u4e0d\u4ec5\u80fd\u8ba9\u535a\u5ba2\u66f4\u6709\u8fa8\u8bc6\u5ea6&#xff0c;\u8fd8\u80fd\u914d\u5408 Cloudflare \u83b7\u5f97 CDN \u52a0\u901f\u3001DDoS \u9632\u62a4\u3001HTTPS \u52a0\u5bc6\u7b49\u4e00\u7cfb\u5217\u597d\u5904\u3002<br \/>\n\u672c\u6587\u8bb0\u5f55\u4ece\u963f\u91cc\u4e91\u8d2d\u4e70\u57df\u540d\u5230Cloudflare \u6258\u7ba1 DNS&#xff0c;\u518d\u5230GitHub Pages \u7ed1\u5b9a\u81ea\u5b9a\u4e49\u57df\u540d\u7684\u5b8c\u6574\u6d41\u7a0b\u3002 \u6574\u4f53\u6d41\u7a0b&#xff1a;\u963f\u91cc\u4e91&amp;#xff08<\/p>\n","protected":false},"author":2,"featured_media":89257,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[92],"topic":[],"class_list":["post-89268","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-github"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e3a GitHub Pages \u535a\u5ba2\u914d\u7f6e\u81ea\u5b9a\u4e49\u57df\u540d\u4e0e Cloudflare \u52a0\u901f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/89268.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e3a GitHub Pages \u535a\u5ba2\u914d\u7f6e\u81ea\u5b9a\u4e49\u57df\u540d\u4e0e Cloudflare \u52a0\u901f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00 GitHub Pages \u9ed8\u8ba4\u63d0\u4f9b yourname.github.io \u8fd9\u6837\u7684\u4e8c\u7ea7\u57df\u540d&#xff0c;\u867d\u7136\u80fd\u7528&#xff0c;\u4f46\u4e0d\u591f\u4e13\u4e1a\u3002\u914d\u7f6e\u81ea\u5df1\u7684\u57df\u540d\u4e0d\u4ec5\u80fd\u8ba9\u535a\u5ba2\u66f4\u6709\u8fa8\u8bc6\u5ea6&#xff0c;\u8fd8\u80fd\u914d\u5408 Cloudflare \u83b7\u5f97 CDN \u52a0\u901f\u3001DDoS \u9632\u62a4\u3001HTTPS \u52a0\u5bc6\u7b49\u4e00\u7cfb\u5217\u597d\u5904\u3002 \u672c\u6587\u8bb0\u5f55\u4ece\u963f\u91cc\u4e91\u8d2d\u4e70\u57df\u540d\u5230Cloudflare \u6258\u7ba1 DNS&#xff0c;\u518d\u5230GitHub Pages \u7ed1\u5b9a\u81ea\u5b9a\u4e49\u57df\u540d\u7684\u5b8c\u6574\u6d41\u7a0b\u3002 \u6574\u4f53\u6d41\u7a0b&#xff1a;\u963f\u91cc\u4e91&amp;#xff08\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89268.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-02T10:57:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105703-6a6f227f158b9.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89268.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89268.html\",\"name\":\"\u4e3a GitHub Pages \u535a\u5ba2\u914d\u7f6e\u81ea\u5b9a\u4e49\u57df\u540d\u4e0e Cloudflare \u52a0\u901f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-02T10:57:19+00:00\",\"dateModified\":\"2026-08-02T10:57:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89268.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89268.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89268.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e3a GitHub Pages \u535a\u5ba2\u914d\u7f6e\u81ea\u5b9a\u4e49\u57df\u540d\u4e0e Cloudflare \u52a0\u901f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e3a GitHub Pages \u535a\u5ba2\u914d\u7f6e\u81ea\u5b9a\u4e49\u57df\u540d\u4e0e Cloudflare \u52a0\u901f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/89268.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e3a GitHub Pages \u535a\u5ba2\u914d\u7f6e\u81ea\u5b9a\u4e49\u57df\u540d\u4e0e Cloudflare \u52a0\u901f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u524d\u8a00 GitHub Pages \u9ed8\u8ba4\u63d0\u4f9b yourname.github.io \u8fd9\u6837\u7684\u4e8c\u7ea7\u57df\u540d&#xff0c;\u867d\u7136\u80fd\u7528&#xff0c;\u4f46\u4e0d\u591f\u4e13\u4e1a\u3002\u914d\u7f6e\u81ea\u5df1\u7684\u57df\u540d\u4e0d\u4ec5\u80fd\u8ba9\u535a\u5ba2\u66f4\u6709\u8fa8\u8bc6\u5ea6&#xff0c;\u8fd8\u80fd\u914d\u5408 Cloudflare \u83b7\u5f97 CDN \u52a0\u901f\u3001DDoS \u9632\u62a4\u3001HTTPS \u52a0\u5bc6\u7b49\u4e00\u7cfb\u5217\u597d\u5904\u3002 \u672c\u6587\u8bb0\u5f55\u4ece\u963f\u91cc\u4e91\u8d2d\u4e70\u57df\u540d\u5230Cloudflare \u6258\u7ba1 DNS&#xff0c;\u518d\u5230GitHub Pages \u7ed1\u5b9a\u81ea\u5b9a\u4e49\u57df\u540d\u7684\u5b8c\u6574\u6d41\u7a0b\u3002 \u6574\u4f53\u6d41\u7a0b&#xff1a;\u963f\u91cc\u4e91&amp;#xff08","og_url":"https:\/\/www.wsisp.com\/helps\/89268.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-02T10:57:19+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802105703-6a6f227f158b9.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/89268.html","url":"https:\/\/www.wsisp.com\/helps\/89268.html","name":"\u4e3a GitHub Pages \u535a\u5ba2\u914d\u7f6e\u81ea\u5b9a\u4e49\u57df\u540d\u4e0e Cloudflare \u52a0\u901f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-02T10:57:19+00:00","dateModified":"2026-08-02T10:57:19+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89268.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89268.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89268.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e3a GitHub Pages \u535a\u5ba2\u914d\u7f6e\u81ea\u5b9a\u4e49\u57df\u540d\u4e0e Cloudflare \u52a0\u901f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=89268"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89268\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/89257"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89268"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}