{"id":63526,"date":"2020-04-09T18:34:23","date_gmt":"2020-04-09T10:34:23","guid":{"rendered":"http:\/\/4563.org\/?p=63526"},"modified":"2020-04-09T18:34:23","modified_gmt":"2020-04-09T10:34:23","slug":"%e8%af%b7%e9%97%ae%e4%b8%8bv2ray%e9%87%8c%e9%9d%a2nginx%e7%9a%84%e9%85%8d%e7%bd%ae%e6%80%8e%e4%b9%88%e5%86%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=63526","title":{"rendered":"\u8bf7\u95ee\u4e0bv2ray\u91cc\u9762nginx\u7684\u914d\u7f6e\u600e\u4e48\u5199"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>xiaozhenghi<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-18 14:26:59\t<\/p>\n<h3>\u8bf7\u95ee\u4e0bv2ray\u91cc\u9762nginx\u7684\u914d\u7f6e\u600e\u4e48\u5199<\/h3>\n<p>  \t\t\u7528\u7684\u5b9d\u5854\uff0c\u7136\u540e\u548b\u5199\u90fd\u662f\u63d0\u793a\u9519\u8bef\u3002\u3002\u3002\u65e0\u5948\u4e86\u3002<\/p>\n<p>  location \/ {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_redirect off;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass http:\/\/127.0.0.1:\u4e0e\u5b89\u88c5v2ray\u8bbe\u7f6e\u7684\u7aef\u53e3\u4e00\u81f4;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_http_version 1.1;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Upgrade $http_upgrade;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Connection &quot;upgrade&quot;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Host $http_host;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<\/p>\n<p>  \u7136\u540e\u62a5\u8fd9\u4e2a\u9519\u8bef<br \/>  nginx: configuration file \/www\/server\/nginx\/conf\/nginx.conf test failed\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u82f1\u68a8\u68a8<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-18 14:28:41\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5199\u5728root \/www\/wwwroot\/xxxxx\u4e0b\u8fb9\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>luceos<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-18 14:29:01\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u770b\u7740\u6ca1\u95ee\u9898\u554a\uff0c\u4f60\u4e0d\u4f1a\u4e0e\u5b89\u88c5v2ray\u8bbe\u7f6e\u7684\u7aef\u53e3\u4e00\u81f4; \u8fd9\u53e5\u8bdd\u4e5f\u6ca1\u6539\u5427\uff0cnginx -t \u770b\u770b\u54ea\u4e00\u884c\u6709\u9519\u8bef\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>clcavril<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-18 14:31:39\t<\/p>\n<h3><\/h3>\n<p>  \t\tlocation \/ {\u8fd9\u91cc\u8981\u6307\u5b9a\u8def\u5f84\u5427\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>whiledone<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-18 14:33:26\t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 whiledone \u4e8e 2020-3-18 14:35 \u7f16\u8f91 <\/p>\n<p> \u7aef\u53e3\u53f7\u54ea\u53bb\u4e86\uff1f<\/p>\n<p>  location \/f2ng { # \u4e0e V2Ray \u914d\u7f6e\u4e2d\u7684 path \u4fdd\u6301\u4e00\u81f4<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_redirect off;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass http:\/\/127.0.0.1:50000; # \u5047\u8bbev2ray\u7684\u76d1\u542c\u5730\u5740\u662f50000<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_http_version 1.1;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Upgrade $http_upgrade;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Connection &quot;upgrade&quot;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Host $host;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;# Show real IP in v2ray access.log<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header X-Real-IP $remote_addr;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>  }\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xiaozhenghi<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-18 15:01:16\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u641e\u597d\u4e86\uff0c\u5199\u5230\u62ec\u53f7\u91cc\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>zhbone<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-18 15:07:07\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u4e2a\u9519\u8bef\u662f\u8bf4\u914d\u7f6e\u5199\u6cd5\u6709\u9519\u3002\u697c\u4e3b\u4ed4\u7ec6\u68c0\u67e5\u4e0b\uff0c\u662f\u4e0d\u662f\u6bcf\u53e5\u8bdd\u90fd\u6709\u5206\u53f7\u7ed3\u5c3e\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>xiaozhenghi \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\/63526"}],"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=63526"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/63526\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=63526"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=63526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}