{"id":81129,"date":"2020-05-11T17:44:02","date_gmt":"2020-05-11T09:44:02","guid":{"rendered":"http:\/\/4563.org\/?p=81129"},"modified":"2020-05-11T17:44:02","modified_gmt":"2020-05-11T09:44:02","slug":"nginx-%e5%8f%8d%e4%bb%a3%e6%9b%bf%e6%8d%a2%e6%b2%a1%e6%95%88%e6%9e%9c","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=81129","title":{"rendered":"nginx \u53cd\u4ee3\u66ff\u6362\u6ca1\u6548\u679c"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>ysmintor<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>nginx \u53cd\u4ee3\u66ff\u6362\u6ca1\u6548\u679c<\/h3>\n<p>  \t\t\u60f3\u53cd\u4ee3 oneindex \u7684\u4e0b\u8f7d\u5730\u5740 xxx-my.sharepoint.com-&gt;cdn.aaa.com\uff0c\u5728\u53cd\u4ee3\u914d\u7f6e\u7684\u5730\u65b9\u7528\u4e86 sub_filter \uff0c\u4f46\u4e0b\u5348\u7684\u6587\u4ef6\u94fe\u63a5\u8fd8\u662f xxx-my.sharepoint.com \u5f00\u5934\uff0c\u6ca1\u6548\u679c\u3002\u9ebb\u70e6\u5927\u4f6c\u770b\u4e0b\u3002<\/p>\n<p>  #PROXY-START\/<br \/>  location~* .(php|jsp|cgi|asp|aspx)$<br \/>  {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header Accept-Encoding &quot;&quot;;<br \/>  &nbsp; &nbsp; proxy_pass https:\/\/od.aaaa.com;<br \/>  &nbsp; &nbsp; proxy_set_header Host od.aaaa.com;<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 REMOTE-HOST $remote_addr;<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; sub_filter &quot;xxx-my.sharepoint.com&quot; &quot;cdn.aaa.com&quot;;<br \/>  &nbsp; &nbsp; sub_filter_once off;<br \/>  &nbsp; &nbsp; sub_filter_types *;<br \/>  }<br \/>  location \/<br \/>  {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header Accept-Encoding &quot;&quot;;<br \/>  &nbsp; &nbsp; proxy_pass https:\/\/od.aaa.com;<br \/>  &nbsp; &nbsp; proxy_set_header Host od2.aaa.com;<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 REMOTE-HOST $remote_addr;<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; add_header X-Cache $upstream_cache_status;<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; sub_filter &quot;xxx-my.sharepoint.com&quot; &quot;cdn.aaaa.com&quot;;<br \/>  &nbsp; &nbsp; sub_filter_once off;<br \/>  &nbsp; &nbsp; sub_filter_types *;<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; #Set Nginx Cache<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add_header Cache-Control no-cache;<br \/>  &nbsp; &nbsp; expires 12h;<br \/>  }<\/p>\n<p>  #PROXY-END\/<br \/>  https:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>steven52880<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u53cd\u4ee3oneindex\u5e72\u561b<br \/>  \u53cd\u4ee3od\u5c31\u597d\u4e86\u554a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>ysmintor<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tsteven52880 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-5-11 17:37<br \/>  \u53cd\u4ee3oneindex\u5e72\u561b<br \/>  \u53cd\u4ee3od\u5c31\u597d\u4e86\u554a<\/p>\n<p> \u53cd\u4ee3 oneindex \u662f\u56fd\u5185\u533a\u57df\u53cd\u4ee3\uff0c\u5176\u5b83\u533a\u57df\u4e0d\u53cd\u4ee3\u3002<br \/>  oneindex \u4e0d\u5c31\u662f od \u5417\uff1f<br \/>  \u6ca1\u660e\u767d\u4f60\u7684\u610f\u601d<br \/>  https:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>steven52880<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tysmintor \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-5-11 17:46<br \/>  \u53cd\u4ee3 oneindex \u662f\u56fd\u5185\u533a\u57df\u53cd\u4ee3\uff0c\u5176\u5b83\u533a\u57df\u4e0d\u53cd\u4ee3\u3002<br \/>  oneindex \u4e0d\u5c31\u662f od \u5417\uff1f<br \/>  \u6ca1\u660e\u767d\u4f60\u7684\u610f\u601d<\/p>\n<p> \u53cd\u4ee3OneDrive\u7684\u57df\u540d\uff0c\u6216\u8005\u5957cdn<br \/>  \u7136\u540e\u5728oneindex\u91cc\u9762\u914d\u7f6e\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hanada<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u80af\u5b9a\u6ca1\u7528\u554a\u2026\u2026\u56e0\u4e3a\u662f302\u8df3\u8f6c\u7684\uff0c\u8df3\u8f6c\u7684Onedrive\u57df\u540d\u5199\u5728header\u91cc\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>sdka<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t302\u8df3\u8f6c\u8981\u7528proxy_redirect\u66ff\u6362\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>ysmintor \u5927\u4f6c\u6709\u8bdd\u8bf4 : &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\/81129"}],"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=81129"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/81129\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=81129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=81129"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=81129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}