{"id":517219,"date":"2021-07-16T20:34:02","date_gmt":"2021-07-16T12:34:02","guid":{"rendered":"http:\/\/4563.org\/?p=517219"},"modified":"2021-07-16T20:34:02","modified_gmt":"2021-07-16T12:34:02","slug":"%e5%a4%a7%e4%bd%ac%e4%bb%ac%e6%95%99%e6%95%99%e6%88%91-nginx%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=517219","title":{"rendered":"\u5927\u4f6c\u4eec\u6559\u6559\u6211 Nginx\u53cd\u5411\u4ee3\u7406"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>orwtmc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u5927\u4f6c\u4eec\u6559\u6559\u6211 Nginx\u53cd\u5411\u4ee3\u7406<\/h3>\n<p>  \t\tRT\uff0c\u8f7b\u91cf\u8981\u53cd\u4ee3\u817e\u8baf\u4e91COS\u6765\u514d\u6d41\u91cf\u3002\u6211\u53ea\u77e5\u9053\u4e00\u4e2aproxy_pass \u5176\u4ed6\u4e0d\u77e5\u9053 \u5927\u4f6c\u4eec\u6559\u4e00\u6559\u2026<br \/>  tg @orwtmc<\/p>\n<p>  P.S.\uff1a\u4e0d\u8981\u8bf4\u5b9d\u5854\u9762\u677f\uff0c\u5c31\u7eaf\u7cb9\u4e00\u4e2anginx\uff0capt\u88c5\u7684\uff0cnginx\u7248\u672c1.18\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u8d75\u8707<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tbt\u7b80\u5355\u4f60\u4e0d\u7528\uff0c\u8981\u88c5X\u81ea\u5df1\u914d\u7f6e\uff0c\u6709\u70b9\u8111\u5b50\u7684\u53bb\u628abt\u7684\u590d\u5236\u6765\u6539\u6539\u4e0d\u4e5f\u80fd\u7528\u3002\u770b\u4e0d\u4e0abt\u90a3\u4f60\u81ea\u5df1\u767e\u5ea6\u554a:D\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>G.K.D<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tNginx \u53cd\u5411\u4ee3\u7406\u56fa\u5b9a\u6a21\u677f\u65e9\u5c31\u70c2\u5927\u8857\u4e86\u5427~<br \/>  \u7f51\u4e0a\u968f\u4fbf\u641c\u641c\u770b\u90fd\u770b\u4e0d\u5b8c\uff0c\u4e0d\u7ba1\u4f60\u662f\u901a\u8fc7\u4ec0\u4e48\u65b9\u5f0f\u5b89\u88c5\u7684 Nginx\uff0c\u53cd\u4ee3\u914d\u7f6e\u90fd\u53ea\u662f\u4e00\u6837\u7684~\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>TulvL<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tdigitalocean \u6709\u4e00\u4e2a\u7b80\u6613\u914d\u7f6e\u5de5\u5177<\/p>\n<p>  https:\/\/www.digitalocean.com\/community\/tools\/nginx?global.app.lang=zhCN\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>shunglay<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u81ea\u5df1\u767e\u5ea6\u53bb:)\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>luceos<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd8\u53ef\u4ee5\u514d\u6d41\u91cf\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>heihai<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u53ea\u77e5\u9053server\uff0clocation:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>gick<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4eba\u5bb6\u5c31\u6c34\u4e2a\u8d34<br \/>  \u4e0d\u8981\u592a\u5728\u610f<\/p>\n<p>   * \u559c\u6b22\u7684\u4eba\u5927\u6982\u662f\u6709\u751f\u4ee5\u6765\u6700\u5927\u7a0b\u5ea6\u7684\u7231\u5c4b\u53ca\u4e4c\u3002   \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>luceos<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tlocation \/ {<br \/>  &nbsp; &nbsp; proxy_pass http:\/\/1.1.1.1;<br \/>  &nbsp; &nbsp; proxy_set_header Host $host;<br \/>  &nbsp; &nbsp; proxy_set_header X-Real-IP $remote_addr;<br \/>  &nbsp; &nbsp; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>  &nbsp; &nbsp; proxy_set_header X-Forwarded-Proto $scheme;<br \/>  }\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>bot<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\thttps:\/\/www.digitalocean.com\/community\/tools\/nginx#?\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>huang1dede<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u53ea\u4f1acaddy<\/p>\n<p>  \u53cd\u4ee3\u767e\u5ea6,,ssh\u6267\u884c\u4ee5\u4e0b\u5373\u53ef<\/p>\n<p>  echo &quot;http:\/\/toyoo.ml {<br \/>  gzip<br \/>  proxy \/ http:\/\/www.baidu.com<br \/>  }&quot; &gt; \/usr\/local\/caddy\/Caddyfile\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>orwtmc \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u5927\u4f6c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/517219"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=517219"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/517219\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=517219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=517219"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=517219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}