{"id":32737,"date":"2022-07-09T22:41:57","date_gmt":"2023-02-19T12:23:17","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/"},"modified":"2024-01-15T07:27:56","modified_gmt":"2024-01-14T23:27:56","slug":"%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/","title":{"rendered":"\u4f7f\u7528Nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406"},"content":{"rendered":"<p>\u5f53\u60f3\u8981\u5c06SSDP\u670d\u52a1\u5668\u548cHTTP\u670d\u52a1\u5668\u5171\u5b58\u5b9e\u73b0UPnP\u65f6\uff0c\u5947\u602a\u7684\u662fGET\u65b9\u6cd5\u7528\u4e8e\u83b7\u53d6\u63cf\u8ff0\u7b49\u4fe1\u606f\u7684\u65f6\u5019\u662f\u9488\u5bf98080\u7aef\u53e3\uff0c\u800c\u63a7\u5236\u547d\u4ee4\u7684POST\u64cd\u4f5c\u5374\u662f\u9488\u5bf980\u7aef\u53e3\uff0c\u56e0\u6b64\u4e3a\u4e86\u5904\u7406\u8fd9\u4e2a\u95ee\u9898\uff0c\u5c1d\u8bd5\u4f7f\u7528Nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406\u3002<\/p>\n<pre class=\"post-pre\"><code>\/usr\/local\/etc\/nginx\/nginx.conf\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>        #listen       8080;\r\n        #for reverse proxy\r\n        listen       80;\r\n        server_name  localhost;\r\n\r\n        #charset koi8-r;\r\n\r\n        #access_log  logs\/host.access.log  main;\r\n\r\n        location \/ {\r\n            root   html;\r\n            index  index.html index.htm;\r\n            #for reverse proxy\r\n            proxy_pass   http:\/\/127.0.0.1:8080;\r\n        }\r\n<\/code><\/pre>\n<p>\u91cd\u8981\u7684\u662f\u53cd\u5411\u4ee3\u7406\u90e8\u5206\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u5bf9\u4e8e8080\u7aef\u53e3\u7684\u8bf7\u6c42\u5c06\u8f6c\u53d1\u5230\u6211\u4eec\u81ea\u5df1\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u800c\u5bf9\u4e8e80\u7aef\u53e3\u7684\u8bf7\u6c42\uff0c\u4e5f\u4f1a\u901a\u8fc7nginx\u91cd\u5b9a\u5411\u52308080\u7aef\u53e3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u60f3\u8981\u5c06SSDP\u670d\u52a1\u5668\u548cHTTP\u670d\u52a1\u5668\u5171\u5b58\u5b9e\u73b0UPnP\u65f6\uff0c\u5947\u602a\u7684\u662fGET\u65b9\u6cd5\u7528\u4e8e\u83b7\u53d6\u63cf\u8ff0\u7b49\u4fe1\u606f\u7684\u65f6\u5019\u662f\u9488\u5bf980 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32737","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>\u4f7f\u7528Nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406 - 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\/\u4f7f\u7528nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406\" \/>\n<meta property=\"og:description\" content=\"\u5f53\u60f3\u8981\u5c06SSDP\u670d\u52a1\u5668\u548cHTTP\u670d\u52a1\u5668\u5171\u5b58\u5b9e\u73b0UPnP\u65f6\uff0c\u5947\u602a\u7684\u662fGET\u65b9\u6cd5\u7528\u4e8e\u83b7\u53d6\u63cf\u8ff0\u7b49\u4fe1\u606f\u7684\u65f6\u5019\u662f\u9488\u5bf980 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-19T12:23:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-14T23:27:56+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\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%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/\",\"name\":\"\u4f7f\u7528Nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-02-19T12:23:17+00:00\",\"dateModified\":\"2024-01-14T23:27:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406\"}]},{\"@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\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406 - 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\/\u4f7f\u7528nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406","og_description":"\u5f53\u60f3\u8981\u5c06SSDP\u670d\u52a1\u5668\u548cHTTP\u670d\u52a1\u5668\u5171\u5b58\u5b9e\u73b0UPnP\u65f6\uff0c\u5947\u602a\u7684\u662fGET\u65b9\u6cd5\u7528\u4e8e\u83b7\u53d6\u63cf\u8ff0\u7b49\u4fe1\u606f\u7684\u65f6\u5019\u662f\u9488\u5bf980 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-02-19T12:23:17+00:00","article_modified_time":"2024-01-14T23:27:56+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/","name":"\u4f7f\u7528Nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-02-19T12:23:17+00:00","dateModified":"2024-01-14T23:27:56+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406"}]},{"@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\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8nginx%e4%bd%9c%e4%b8%ba%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32737","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32737"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32737\/revisions"}],"predecessor-version":[{"id":57365,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32737\/revisions\/57365"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}