{"id":42461,"date":"2025-06-09T08:05:51","date_gmt":"2025-06-09T00:05:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/42461.html"},"modified":"2025-06-09T08:05:51","modified_gmt":"2025-06-09T00:05:51","slug":"%e5%9c%a8%e4%b8%80%e5%8f%b0%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e9%80%9a%e8%bf%87-nginx-%e9%85%8d%e7%bd%ae%e5%ae%9e%e7%8e%b0%e4%b8%8d%e5%90%8c%e5%ad%90%e5%9f%9f%e5%90%8d%e8%ae%bf%e9%97%ae%e9%9d%99","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/42461.html","title":{"rendered":"\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u901a\u8fc7 Nginx \u914d\u7f6e\u5b9e\u73b0\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1"},"content":{"rendered":"<h2>\u4e00\u3001\u57df\u540d\u89e3\u6790\u914d\u7f6e<\/h2>\n<p>\u8981\u5b9e\u73b0\u901a\u8fc7\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1&#xff0c;\u9996\u5148\u9700\u8981\u8fdb\u884c\u57df\u540d\u89e3\u6790\u3002\u5728\u57df\u540d\u6ce8\u518c\u5546\u6216 DNS \u670d\u52a1\u5546\u5904&#xff0c;\u4e3a\u4f60\u7684\u4e24\u4e2a\u5b50\u57df\u540d blog.xxx.com \u548c api.xxx.com \u914d\u7f6e A \u8bb0\u5f55\u6216 CNAME \u8bb0\u5f55\u3002\u5c06\u5b83\u4eec\u7684 A \u8bb0\u5f55\u90fd\u6307\u5411\u4f60\u670d\u52a1\u5668\u7684 IP \u5730\u5740\u3002\u4f8b\u5982&#xff0c;\u5982\u679c\u670d\u52a1\u5668 IP \u662f 192.168.1.100&#xff0c;\u90a3\u4e48\u8bbe\u7f6e blog.xxx.com \u548c api.xxx.com \u7684 A \u8bb0\u5f55\u503c\u4e3a\u8fd9\u4e2a IP\u3002<\/p>\n<h2>\u4e8c\u3001Nginx \u914d\u7f6e<\/h2>\n<h3>&#xff08;\u4e00&#xff09;\u9759\u6001\u6587\u4ef6\u914d\u7f6e&#xff08;blog.xxx.com&#xff09;<\/h3>\n<li>\n<p>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 Nginx \u914d\u7f6e\u6587\u4ef6&#xff0c;\u6216\u8005\u7f16\u8f91\u73b0\u6709\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4 sudo nano \/etc\/nginx\/sites-available\/blog&#xff08;\u8def\u5f84\u53ef\u80fd\u4f1a\u56e0\u4f60\u7684\u7cfb\u7edf\u5b89\u88c5\u914d\u7f6e\u800c\u6709\u6240\u4e0d\u540c&#xff09;\u6765\u521b\u5efa\u6216\u7f16\u8f91\u3002<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>server <span class=\"token punctuation\">{<\/span><br \/>\n    listen <span class=\"token number\">80<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    server_name blog<span class=\"token punctuation\">.<\/span>xxx<span class=\"token punctuation\">.<\/span>com<span class=\"token punctuation\">;<\/span><\/p>\n<p>    location <span class=\"token operator\">\/<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        root <span class=\"token operator\">\/<\/span>path<span class=\"token operator\">\/<\/span>to<span class=\"token operator\">\/<\/span>your<span class=\"token operator\">\/<\/span><span class=\"token keyword\">static<\/span><span class=\"token operator\">\/<\/span>files<span class=\"token punctuation\">;<\/span> # \u9759\u6001\u6587\u4ef6\u5b58\u653e\u8def\u5f84<br \/>\n        index index<span class=\"token punctuation\">.<\/span>html<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fd9\u91cc\u76d1\u542c 80 \u7aef\u53e3&#xff0c;server_name \u6307\u4ee4\u6307\u5b9a\u5b50\u57df\u540d\u3002location \/ \u5757\u6307\u5b9a\u4e86\u6839\u76ee\u5f55&#xff0c;\u5f53\u7528\u6237\u8bbf\u95ee blog.xxx.com \u65f6&#xff0c;\u4f1a\u4ece\u6307\u5b9a\u7684\u9759\u6001\u6587\u4ef6\u76ee\u5f55\u4e2d\u67e5\u627e\u8d44\u6e90\u3002<\/p>\n<\/li>\n<h3>&#xff08;\u4e8c&#xff09;\u540e\u7aef\u670d\u52a1\u914d\u7f6e&#xff08;api.xxx.com&#xff09;<\/h3>\n<li>\n<p>\u540c\u6837&#xff0c;\u521b\u5efa\u6216\u7f16\u8f91 Nginx \u914d\u7f6e\u6587\u4ef6&#xff0c;\u5982 sudo nano \/etc\/nginx\/sites-available\/api\u3002<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u793a\u4f8b&#xff1a;<\/p>\n<p> server <span class=\"token punctuation\">{<\/span><br \/>\n    listen <span class=\"token number\">80<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    server_name api<span class=\"token punctuation\">.<\/span>xxx<span class=\"token punctuation\">.<\/span>com<span class=\"token punctuation\">;<\/span><\/p>\n<p>    location <span class=\"token operator\">\/<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        proxy_pass http<span class=\"token operator\">:<\/span><span class=\"token operator\">\/<\/span><span class=\"token operator\">\/<\/span>localhost<span class=\"token operator\">:<\/span>your_backend_port<span class=\"token punctuation\">;<\/span> # \u540e\u7aef\u670d\u52a1\u8fd0\u884c\u7684\u672c\u5730\u7aef\u53e3<br \/>\n        proxy_set_header Host $host<span class=\"token punctuation\">;<\/span><br \/>\n        proxy_set_header <span class=\"token constant\">X<\/span><span class=\"token operator\">&#8211;<\/span>Real<span class=\"token operator\">&#8211;<\/span><span class=\"token constant\">IP<\/span> $remote_addr<span class=\"token punctuation\">;<\/span><br \/>\n        proxy_set_header <span class=\"token constant\">X<\/span><span class=\"token operator\">&#8211;<\/span>Forwarded<span class=\"token operator\">&#8211;<\/span>For $proxy_add_x_forwarded_for<span class=\"token punctuation\">;<\/span><br \/>\n        proxy_set_header <span class=\"token constant\">X<\/span><span class=\"token operator\">&#8211;<\/span>Forwarded<span class=\"token operator\">&#8211;<\/span>Proto $scheme<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span>\n <\/li>\n<p>\u8fd9\u91cc\u4e5f\u662f\u76d1\u542c 80 \u7aef\u53e3&#xff0c;proxy_pass \u6307\u4ee4\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u672c\u5730\u8fd0\u884c\u7684\u540e\u7aef\u670d\u52a1\u7aef\u53e3&#xff0c;\u5176\u4ed6 proxy_set_header \u6307\u4ee4\u7528\u4e8e\u6b63\u786e\u8bbe\u7f6e\u8bf7\u6c42\u5934&#xff0c;\u4ee5\u4fbf\u540e\u7aef\u670d\u52a1\u80fd\u591f\u83b7\u53d6\u6b63\u786e\u7684\u5ba2\u6237\u7aef\u4fe1\u606f\u7b49\u3002<\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u4f60\u5c31\u53ef\u4ee5\u5b9e\u73b0\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a&#xff0c;\u901a\u8fc7\u4e0d\u540c\u7684\u5b50\u57df\u540d\u5206\u522b\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1&#xff0c;\u5e76\u4e14\u90fd\u5f00\u542f\u4e86 HTTPS \u4fdd\u62a4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb683\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u4e3a\u4e86\u5b9e\u73b0\u901a\u8fc7\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1\uff0c\u9996\u5148\u9700\u8981\u5728\u57df\u540d\u6ce8\u518c\u5546\u6216 DNS \u670d\u52a1\u5546\u5904\u4e3a\u5b50\u57df\u540d blog.xxx.com \u548c api.xxx.com \u914d\u7f6e A \u8bb0\u5f55\uff0c\u6307\u5411\u670d\u52a1\u5668 IP \u5730\u5740\u3002\u63a5\u7740\uff0c\u5728 Nginx \u4e2d\u8fdb\u884c\u914d\u7f6e\uff1a\u5bf9\u4e8e blog.xxx.com\uff0c\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u76d1\u542c 80 \u7aef\u53e3\uff0c\u5e76\u6307\u5b9a\u9759\u6001\u6587\u4ef6\u7684\u5b58\u653e\u8def\u5f84\uff1b\u5bf9\u4e8e api.xxx.com\uff0c\u540c\u6837\u521b\u5efa\u914d\u7f6e\u6587\u4ef6\uff0c\u76d1\u542c 80 \u7aef\u53e3\uff0c\u5e76\u901a\u8fc7 proxy_pass \u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u672c\u5730\u540e\u7aef\u670d\u52a1\u7aef\u53e3\uff0c\u540c\u65f6\u8bbe\u7f6e\u76f8\u5173\u8bf7\u6c42\u5934\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u5728\u540c\u4e00\u670d\u52a1\u5668\u4e0a\u901a\u8fc7\u4e0d\u540c\u5b50\u57df\u540d\u5206_nginx \u5b50\u57df\u540d<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[117,87,43],"topic":[],"class_list":["post-42461","post","type-post","status-publish","format-standard","hentry","category-server","tag-nginx","tag-87","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u901a\u8fc7 Nginx \u914d\u7f6e\u5b9e\u73b0\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1 - \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\/42461.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u901a\u8fc7 Nginx \u914d\u7f6e\u5b9e\u73b0\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb683\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u4e3a\u4e86\u5b9e\u73b0\u901a\u8fc7\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1\uff0c\u9996\u5148\u9700\u8981\u5728\u57df\u540d\u6ce8\u518c\u5546\u6216 DNS \u670d\u52a1\u5546\u5904\u4e3a\u5b50\u57df\u540d blog.xxx.com \u548c api.xxx.com \u914d\u7f6e A \u8bb0\u5f55\uff0c\u6307\u5411\u670d\u52a1\u5668 IP \u5730\u5740\u3002\u63a5\u7740\uff0c\u5728 Nginx \u4e2d\u8fdb\u884c\u914d\u7f6e\uff1a\u5bf9\u4e8e blog.xxx.com\uff0c\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u76d1\u542c 80 \u7aef\u53e3\uff0c\u5e76\u6307\u5b9a\u9759\u6001\u6587\u4ef6\u7684\u5b58\u653e\u8def\u5f84\uff1b\u5bf9\u4e8e api.xxx.com\uff0c\u540c\u6837\u521b\u5efa\u914d\u7f6e\u6587\u4ef6\uff0c\u76d1\u542c 80 \u7aef\u53e3\uff0c\u5e76\u901a\u8fc7 proxy_pass \u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u672c\u5730\u540e\u7aef\u670d\u52a1\u7aef\u53e3\uff0c\u540c\u65f6\u8bbe\u7f6e\u76f8\u5173\u8bf7\u6c42\u5934\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u5728\u540c\u4e00\u670d\u52a1\u5668\u4e0a\u901a\u8fc7\u4e0d\u540c\u5b50\u57df\u540d\u5206_nginx \u5b50\u57df\u540d\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/42461.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-09T00:05:51+00:00\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42461.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/42461.html\",\"name\":\"\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u901a\u8fc7 Nginx \u914d\u7f6e\u5b9e\u73b0\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-09T00:05:51+00:00\",\"dateModified\":\"2025-06-09T00:05:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/42461.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/42461.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42461.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u901a\u8fc7 Nginx \u914d\u7f6e\u5b9e\u73b0\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1\"}]},{\"@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":"\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u901a\u8fc7 Nginx \u914d\u7f6e\u5b9e\u73b0\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1 - \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\/42461.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u901a\u8fc7 Nginx \u914d\u7f6e\u5b9e\u73b0\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb683\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u4e3a\u4e86\u5b9e\u73b0\u901a\u8fc7\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1\uff0c\u9996\u5148\u9700\u8981\u5728\u57df\u540d\u6ce8\u518c\u5546\u6216 DNS \u670d\u52a1\u5546\u5904\u4e3a\u5b50\u57df\u540d blog.xxx.com \u548c api.xxx.com \u914d\u7f6e A \u8bb0\u5f55\uff0c\u6307\u5411\u670d\u52a1\u5668 IP \u5730\u5740\u3002\u63a5\u7740\uff0c\u5728 Nginx \u4e2d\u8fdb\u884c\u914d\u7f6e\uff1a\u5bf9\u4e8e blog.xxx.com\uff0c\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u76d1\u542c 80 \u7aef\u53e3\uff0c\u5e76\u6307\u5b9a\u9759\u6001\u6587\u4ef6\u7684\u5b58\u653e\u8def\u5f84\uff1b\u5bf9\u4e8e api.xxx.com\uff0c\u540c\u6837\u521b\u5efa\u914d\u7f6e\u6587\u4ef6\uff0c\u76d1\u542c 80 \u7aef\u53e3\uff0c\u5e76\u901a\u8fc7 proxy_pass \u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u672c\u5730\u540e\u7aef\u670d\u52a1\u7aef\u53e3\uff0c\u540c\u65f6\u8bbe\u7f6e\u76f8\u5173\u8bf7\u6c42\u5934\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u5728\u540c\u4e00\u670d\u52a1\u5668\u4e0a\u901a\u8fc7\u4e0d\u540c\u5b50\u57df\u540d\u5206_nginx \u5b50\u57df\u540d","og_url":"https:\/\/www.wsisp.com\/helps\/42461.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-09T00:05:51+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/42461.html","url":"https:\/\/www.wsisp.com\/helps\/42461.html","name":"\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u901a\u8fc7 Nginx \u914d\u7f6e\u5b9e\u73b0\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-09T00:05:51+00:00","dateModified":"2025-06-09T00:05:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/42461.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/42461.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/42461.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u901a\u8fc7 Nginx \u914d\u7f6e\u5b9e\u73b0\u4e0d\u540c\u5b50\u57df\u540d\u8bbf\u95ee\u9759\u6001\u6587\u4ef6\u548c\u540e\u7aef\u670d\u52a1"}]},{"@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\/42461","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=42461"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/42461\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=42461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=42461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=42461"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=42461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}