{"id":32880,"date":"2022-11-24T11:02:14","date_gmt":"2023-02-12T06:53:34","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/"},"modified":"2024-04-29T02:16:22","modified_gmt":"2024-04-28T18:16:22","slug":"%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/","title":{"rendered":"\u4ece\u5b89\u88c5Nginx\u670d\u52a1\u5668\u5230\u652f\u6301HTTPS"},"content":{"rendered":"<p>\u6211\u662f\u8239\u4e95\u7dcf\u7814\u30c7\u30b8\u30bf\u30eb\u7684\u3088\u3082\u304e\u3002<\/p>\n<p>\u6211\u60f3\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u4ecb\u7ecd\u5728Azure\u4e0a\u90e8\u7f72Ubuntu\u865a\u62df\u673a\uff08\u7528\u4f5cWeb\u670d\u52a1\u5668\uff09\u5e76\u5728\u90e8\u7f72\u7684\u865a\u62df\u673a\u4e0a\u5b89\u88c5Apache\uff0c\u5e76\u8ba9\u5b83\u652f\u6301HTTPS\u4f7f\u7528Let&#8217;s Encrypt\u3002<\/p>\n<p>\u8981\u5728Let&#8217;s Encrypt\u4e0a\u542f\u7528HTTPS\uff0c\u60a8\u9700\u8981\u4e00\u4e2a\u57df\u540d\uff0c\u8be5\u57df\u540d\u5fc5\u987b\u88ab\u89e3\u6790\u4e3a\u865a\u62df\u673a\u7684\u5168\u5c40IP\u5730\u5740\u3002<br \/>\n\u60a8\u53ef\u4ee5\u5728\u4efb\u610f\u6ce8\u518c\u5904\u83b7\u53d6\u548c\u8bbe\u7f6e\u57df\u540d\u3002<\/p>\n<p>\u8bf7\u67e5\u770b\u8fd9\u7bc7\u6587\u7ae0\u4ee5\u4e86\u89e3\u5982\u4f55\u5b89\u88c5Apache\u5e76\u652f\u6301HTTPS\u3002<\/p>\n<h1>\u5b89\u88c5Nginx<\/h1>\n<p>\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u662fnginx\u3002<\/p>\n<pre class=\"post-pre\"><code>$ apt show nginx 2&gt;\/dev\/null\r\nPackage: nginx\r\nVersion: 1.18.0-6ubuntu14.3\r\nPriority: optional\r\nSection: web\r\nOrigin: Ubuntu\r\nMaintainer: Ubuntu Developers &lt;ubuntu-devel-discuss@lists.ubuntu.com&gt;\r\nOriginal-Maintainer: Debian Nginx Maintainers &lt;pkg-nginx-maintainers@alioth-lists.debian.net&gt;\r\nBugs: https:\/\/bugs.launchpad.net\/ubuntu\/+filebug\r\nInstalled-Size: 50.2 kB\r\nDepends: nginx-core (&lt;&lt; 1.18.0-6ubuntu14.3.1~) | nginx-full (&lt;&lt; 1.18.0-6ubuntu14.3.1~) | nginx-light (&lt;&lt; 1.18.0-6ubuntu14.3.1~) | nginx-extras (&lt;&lt; 1.18.0-6ubuntu14.3.1~), nginx-core (&gt;= 1.18.0-6ubuntu14.3) | nginx-full (&gt;= 1.18.0-6ubuntu14.3) | nginx-light (&gt;= 1.18.0-6ubuntu14.3) | nginx-extras (&gt;= 1.18.0-6ubuntu14.3)\r\nBreaks: libnginx-mod-http-lua (&lt;&lt; 1.18.0-6ubuntu5)\r\nHomepage: https:\/\/nginx.net\r\nDownload-Size: 3882 B\r\nAPT-Manual-Installed: yes\r\nAPT-Sources: http:\/\/azure.archive.ubuntu.com\/ubuntu jammy-updates\/main amd64 Packages\r\nDescription: small, powerful, scalable web\/proxy server\r\n Nginx (\"engine X\") is a high-performance web and reverse proxy server\r\n created by Igor Sysoev. It can be used both as a standalone web server\r\n and as a proxy to reduce the load on back-end HTTP or mail servers.\r\n .\r\n This is a dependency package to install either nginx-core (by default),\r\n nginx-full, nginx-light or nginx-extras.\r\n<\/code><\/pre>\n<p>\u6211\u4f1a\u7acb\u5373\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code>$ sudo apt install -y nginx\r\n<\/code><\/pre>\n<p>\u5b89\u88c5\u540e\uff0c\u53ef\u4ee5\u770b\u5230Nginx\u76d1\u542c\u4e86TCP\u7aef\u53e380\u3002<\/p>\n<pre class=\"post-pre\"><code>$ sudo ss -tlnp | grep :80\r\nLISTEN 0      511          0.0.0.0:80        0.0.0.0:*    users:((\"nginx\",pid=2783,fd=6),(\"nginx\",pid=2780,fd=6))\r\nLISTEN 0      511             [::]:80           [::]:*    users:((\"nginx\",pid=2783,fd=7),(\"nginx\",pid=2780,fd=7))\r\n$ curl http:\/\/127.0.0.1\/ 2&gt;\/dev\/null | grep title\r\n&lt;title&gt;Welcome to nginx!&lt;\/title&gt;\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14b337434c4406bfc0e6\/11-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-01-09 173810.png\" \/><\/div>\n<h1>\u4f7f\u5176\u652f\u6301HTTPS<\/h1>\n<p>\u4e3a\u4e86\u652f\u6301HTTPS\uff0c\u9996\u5148\u9700\u8981\u8bbe\u7f6enginx\u670d\u52a1\u5668\u7684\u540d\u79f0\uff0c\u5e76\u91cd\u65b0\u52a0\u8f7dNginx\u3002<\/p>\n<pre class=\"post-pre\"><code>$ grep server_name \/etc\/nginx\/sites-available\/default | grep -v '#'\r\n        server_name www.example.com;\r\n$ sudo systemctl reload nginx\r\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\uff0c\u5b89\u88c5Certbot\u8f6f\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>apt <span class=\"nb\">install<\/span> <span class=\"nt\">-y<\/span> certbot python3-certbot-nginx\r\n<\/code><\/pre>\n<p>\u5728\u5b89\u88c5\u4e86Certbot\u4e4b\u540e\uff0c\u60a8\u53ef\u4ee5\u83b7\u53d6\u8bc1\u4e66\u3002\u5728\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u9700\u8981\u56de\u7b54\u4e00\u4e9b\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>certbot <span class=\"nt\">--nginx<\/span>\r\nSaving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\r\nEnter email address <span class=\"o\">(<\/span>used <span class=\"k\">for <\/span>urgent renewal and security notices<span class=\"o\">)<\/span>\r\n <span class=\"o\">(<\/span>Enter <span class=\"s1\">'c'<\/span> to cancel<span class=\"o\">)<\/span>: username@exmaple.com\r\n\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nPlease <span class=\"nb\">read <\/span>the Terms of Service at\r\nhttps:\/\/letsencrypt.org\/documents\/LE-SA-v1.3-September-21-2022.pdf. You must\r\nagree <span class=\"k\">in <\/span>order to register with the ACME server. Do you agree?\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n<span class=\"o\">(<\/span>Y<span class=\"o\">)<\/span>es\/<span class=\"o\">(<\/span>N<span class=\"o\">)<\/span>o: Y\r\n\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nWould you be willing, once your first certificate is successfully issued, to\r\nshare your email address with the Electronic Frontier Foundation, a founding\r\npartner of the Let<span class=\"s1\">'s Encrypt project and the non-profit organization that\r\ndevelops Certbot? We'<\/span>d like to send you email about our work encrypting the web,\r\nEFF news, campaigns, and ways to support digital freedom.\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n<span class=\"o\">(<\/span>Y<span class=\"o\">)<\/span>es\/<span class=\"o\">(<\/span>N<span class=\"o\">)<\/span>o: Y or N\r\n\r\nWhich names would you like to activate HTTPS <span class=\"k\">for<\/span>?\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n1: example.com\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nSelect the appropriate numbers separated by commas and\/or spaces, or leave input\r\nblank to <span class=\"k\">select <\/span>all options shown <span class=\"o\">(<\/span>Enter <span class=\"s1\">'c'<\/span> to cancel<span class=\"o\">)<\/span>: 1\r\n<span class=\"nt\">---snip---<\/span>\r\n<\/code><\/pre>\n<p>\u5f53\u67e5\u770bNginx\u5728\u6b64\u5904\u76d1\u542c\u7684\u7aef\u53e3\u65f6\uff0c\u53ef\u4ee5\u786e\u8ba4\u5df2\u7ecf\u76d1\u542c\u4e86TCP443\u7aef\u53e3\u3002<\/p>\n<pre class=\"post-pre\"><code>$ sudo ss -tlnp | grep nginx\r\nLISTEN 0      511          0.0.0.0:80        0.0.0.0:*    users:((\"nginx\",pid=3483,fd=6),(\"nginx\",pid=2780,fd=6))\r\nLISTEN 0      511          0.0.0.0:443       0.0.0.0:*    users:((\"nginx\",pid=3483,fd=12),(\"nginx\",pid=2780,fd=12))\r\nLISTEN 0      511             [::]:80           [::]:*    users:((\"nginx\",pid=3483,fd=7),(\"nginx\",pid=2780,fd=7))\r\nLISTEN 0      511             [::]:443          [::]:*    users:((\"nginx\",pid=3483,fd=11),(\"nginx\",pid=2780,fd=11))\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14b337434c4406bfc0e6\/21-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-01-09 175827.png\" \/><\/div>\n<h1>\u8bc1\u660e\u4e66\u7684\u81ea\u52a8\u66f4\u65b0\u8bbe\u7f6e<\/h1>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14b337434c4406bfc0e6\/23-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-01-09 180300.png\" \/><\/div>\n<p>\u56e0\u6b64\uff0c\u8bbe\u7f6e\u6bcf\u4e24\u4e2a\u6708\u7684\u5947\u6570\u6708\u4efd\u7684\u6bcf\u67081\u65e5\u4e0a\u53487\u70b9\u66f4\u65b0\u8bc1\u4e66\u5e76\u91cd\u65b0\u52a0\u8f7dNginx\u914d\u7f6e\u3002<\/p>\n<p>\u5177\u4f53\u6765\u8bf4\uff0c\u5c06\u4ee5\u4e0b\u5185\u5bb9\u6dfb\u52a0\u5230cron\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code>0 7 1,3,5,7,9,11 <span class=\"k\">*<\/span> root \/usr\/bin\/certbot renew <span class=\"nt\">--webroot-path<\/span> \/var\/www\/html\/ <span class=\"nt\">--post-hook<\/span> <span class=\"s2\">\"\/usr\/bin\/systemctl reload nginx\"<\/span> <span class=\"o\">&gt;<\/span> \/root\/certbot-renew.execlog 2&gt;&amp;1\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u6d4b\u8bd5Certbot\u7684\u66f4\u65b0\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>certbot renew <span class=\"nt\">--dry-run<\/span>\r\nSaving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\r\n\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nProcessing \/etc\/letsencrypt\/renewal\/example.com.conf\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nSimulating renewal of an existing certificate <span class=\"k\">for <\/span>tsyk.net\r\n\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nCongratulations, all simulated renewals succeeded:\r\n  \/etc\/letsencrypt\/live\/example.com\/fullchain.pem <span class=\"o\">(<\/span>success<span class=\"o\">)<\/span>\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n<\/code><\/pre>\n<p>\u53e6\u5916\uff0cNginx\u7684\u5185\u5bb9\u88ab\u653e\u7f6e\u5728\/var\/www\/html\u76ee\u5f55\u4e0b\u3002<\/p>\n<p>\u6211\u5df2\u7ecf\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Ubuntu\u4e0a\u5b89\u88c5Nginx\u5e76\u901a\u8fc7Let&#8217;s Encrypt\u542f\u7528HTTPS\u652f\u6301\u3002<\/p>\n<p>\u8bf7\u63d0\u4f9b\u6709\u5173\u5728Azure\u4e0a\u90e8\u7f72Ubuntu\u865a\u62df\u673a\u7684\u6587\u7ae0\u548c\u5728Ubuntu\u4e0a\u5b89\u88c5Apache\u5e76\u652f\u6301HTTPS\u7684\u6587\u7ae0\u3002<\/p>\n<p>\u975e\u5e38\u611f\u8c22\u60a8\u9605\u8bfb\u5230\u6700\u540e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u662f\u8239\u4e95\u7dcf\u7814\u30c7\u30b8\u30bf\u30eb\u7684\u3088\u3082\u304e\u3002 \u6211\u60f3\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u4ecb\u7ecd\u5728Azure\u4e0a\u90e8\u7f72Ubuntu\u865a\u62df\u673a\uff08\u7528\u4f5cWeb\u670d\u52a1\u5668\uff09\u5e76 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32880","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4ece\u5b89\u88c5Nginx\u670d\u52a1\u5668\u5230\u652f\u6301HTTPS - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u4ece\u5b89\u88c5nginx\u670d\u52a1\u5668\u5230\u652f\u6301https\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4ece\u5b89\u88c5Nginx\u670d\u52a1\u5668\u5230\u652f\u6301HTTPS\" \/>\n<meta property=\"og:description\" content=\"\u6211\u662f\u8239\u4e95\u7dcf\u7814\u30c7\u30b8\u30bf\u30eb\u7684\u3088\u3082\u304e\u3002 \u6211\u60f3\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u4ecb\u7ecd\u5728Azure\u4e0a\u90e8\u7f72Ubuntu\u865a\u62df\u673a\uff08\u7528\u4f5cWeb\u670d\u52a1\u5668\uff09\u5e76 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4ece\u5b89\u88c5nginx\u670d\u52a1\u5668\u5230\u652f\u6301https\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-12T06:53:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T18:16:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14b337434c4406bfc0e6\/11-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/\",\"name\":\"\u4ece\u5b89\u88c5Nginx\u670d\u52a1\u5668\u5230\u652f\u6301HTTPS - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-02-12T06:53:34+00:00\",\"dateModified\":\"2024-04-28T18:16:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4ece\u5b89\u88c5Nginx\u670d\u52a1\u5668\u5230\u652f\u6301HTTPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4ece\u5b89\u88c5Nginx\u670d\u52a1\u5668\u5230\u652f\u6301HTTPS - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u4ece\u5b89\u88c5nginx\u670d\u52a1\u5668\u5230\u652f\u6301https\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4ece\u5b89\u88c5Nginx\u670d\u52a1\u5668\u5230\u652f\u6301HTTPS","og_description":"\u6211\u662f\u8239\u4e95\u7dcf\u7814\u30c7\u30b8\u30bf\u30eb\u7684\u3088\u3082\u304e\u3002 \u6211\u60f3\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u4ecb\u7ecd\u5728Azure\u4e0a\u90e8\u7f72Ubuntu\u865a\u62df\u673a\uff08\u7528\u4f5cWeb\u670d\u52a1\u5668\uff09\u5e76 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4ece\u5b89\u88c5nginx\u670d\u52a1\u5668\u5230\u652f\u6301https\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-02-12T06:53:34+00:00","article_modified_time":"2024-04-28T18:16:22+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d14b337434c4406bfc0e6\/11-0.png"}],"author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/","name":"\u4ece\u5b89\u88c5Nginx\u670d\u52a1\u5668\u5230\u652f\u6301HTTPS - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-02-12T06:53:34+00:00","dateModified":"2024-04-28T18:16:22+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4ece\u5b89\u88c5Nginx\u670d\u52a1\u5668\u5230\u652f\u6301HTTPS"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e5%ae%89%e8%a3%85nginx%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%b0%e6%94%af%e6%8c%81https\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32880"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32880\/revisions"}],"predecessor-version":[{"id":74367,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32880\/revisions\/74367"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}