{"id":55364,"date":"2025-02-19T12:01:21","date_gmt":"2025-02-19T04:01:21","guid":{"rendered":"https:\/\/fwq.ai\/blog\/55364\/"},"modified":"2025-02-19T12:01:21","modified_gmt":"2025-02-19T04:01:21","slug":"%e5%9b%bd%e5%86%85%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%bb%91%e5%ae%9a%e9%9d%9e%e5%a4%87%e6%a1%88%e5%9f%9f%e5%90%8d%e5%b9%b6%e9%83%a8%e7%bd%b2wordpress","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/55364\/","title":{"rendered":"\u56fd\u5185\u670d\u52a1\u5668\u7ed1\u5b9a\u975e\u5907\u6848\u57df\u540d\u5e76\u90e8\u7f72wordpress"},"content":{"rendered":"<p>1.\u5728cloudflare \u7ed1\u5b9a\u57df\u540d<\/p>\n<p>&nbsp;<\/p>\n<p> <\/p>\n<p>2.cloudflare Tunnels \u6309\u6559\u7a0b\u5728\u670d\u52a1\u5668\u90e8\u7f72\uff0c\u5e76\u7ed9\u7f51\u7ad9\u8bbe\u7f6e\u8f6c\u53d1\u7aef\u53e3\u548c\u57df\u540d<\/p>\n<p>&nbsp;<\/p>\n<p>3.\u670d\u52a1\u5668\u7f51\u7ad9\u76ee\u5f55\u7ed1\u5b9a172.0.0.1:\u7aef\u53e3\uff08nginx\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>4.\u56e0nginx\u5185\u7f51\u7aef\u53e3\u6620\u5c04\u975eHTTPS\uff0c\u5bfc\u81f4\u534f\u8bae\u6df7\u4e71\u53ef\u80fd\u91cd\u5b9a\u5411\uff0c\u627e\u5230wp-includes\/load.php\uff0c\u641c\u7d22is_ssl()\u4fee\u6539\u53c2\u6570<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p>\n  function is_ssl() { if ( isset( $_SERVER[&#8216;HTTPS&#8217;] ) ) { if ( &#8216;on&#8217; === strtolower( $_SERVER[&#8216;HTTPS&#8217;] ) ) { return true; } if ( &#8216;1&#8217; === (string) $_SERVER[&#8216;HTTPS&#8217;] ) { return true; } } elseif ( isset( $_SERVER[&#8216;SERVER_PORT&#8217;] ) &amp;&amp; ( &#8216;443&#8217; === (string) $_SERVER[&#8216;SERVER_PORT&#8217;] ) ) { return true; } return<br \/>\n <span style=\"color: #ff6600\"><strong>false<\/strong><\/span>; }\n<\/p><\/blockquote>\n<p> return false\u6539\u4e3areturn true<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5728cloudflare \u7ed1\u5b9a\u57df\u540d &nbsp; 2.cloudflare Tunnels \u6309\u6559\u7a0b\u5728\u670d\u52a1\u5668\u90e8\u7f72\uff0c\u5e76\u7ed9\u7f51\u7ad9\u8bbe\u7f6e\u8f6c\u53d1\u7aef\u53e3\u548c\u57df\u540d &nbsp; 3.\u670d\u52a1\u5668\u7f51\u7ad9\u76ee\u5f55\u7ed1\u5b9a172.0.0.1:\u7aef\u53e3\uff08nginx\uff09 &nbsp; 4.\u56e0nginx\u5185\u7f51\u7aef\u53e3\u6620\u5c04\u975eHTTPS\uff0c\u5bfc\u81f4\u534f\u8bae\u6df7\u4e71\u53ef\u80fd\u91cd\u5b9a\u5411\uff0c\u627e\u5230wp-includes\/load.php\uff0c\u641c\u7d22is_ssl()\u4fee\u6539\u53c2\u6570 &nbsp; function is_ssl() { if ( isset( $_SERVER[&#8216;HTTPS&#8217;] ) ) { if ( &#8216;on&#8217; === strtolower( $_SERVER[&#8216;HTTPS&#8217;] ) ) { return true; } if ( &#8216;1&#8217; === (string) $_SERVER[&#8216;HTTPS&#8217;] ) { return true; } } elseif ( isset( $_SERVER[&#8216;SERVER_PORT&#8217;] ) &amp;&amp; ( &#8216;443&#8217; === (string) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-55364","post","type-post","status-publish","format-standard","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=55364"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55364\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=55364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=55364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=55364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}