{"id":160428,"date":"2020-09-25T19:31:04","date_gmt":"2020-09-25T11:31:04","guid":{"rendered":"http:\/\/4563.org\/?p=160428"},"modified":"2020-09-25T19:31:04","modified_gmt":"2020-09-25T11:31:04","slug":"%e8%af%b7%e6%95%99%e5%90%84%e4%bd%8d%e5%a4%a7%e4%bd%ac-%e5%a6%82%e4%bd%95%e8%ae%be%e7%bd%ae-nginx-%e5%8f%af%e4%bd%bf%e4%b8%8d%e5%ad%98%e5%9c%a8%e7%9a%84%e4%ba%8c%e7%ba%a7%e5%9c%b0%e5%9d%80%e8%b7%b3","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=160428","title":{"rendered":"\u8bf7\u6559\u5404\u4f4d\u5927\u4f6c \u5982\u4f55\u8bbe\u7f6e nginx \u53ef\u4f7f\u4e0d\u5b58\u5728\u7684\u4e8c\u7ea7\u5730\u5740\u8df3\u8f6c\u5230\u5b58\u5728\u7684\u4e8c\u7ea7\u5730\u5740\u4e0a"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559\u5404\u4f4d\u5927\u4f6c \u5982\u4f55\u8bbe\u7f6e nginx \u53ef\u4f7f\u4e0d\u5b58\u5728\u7684\u4e8c\u7ea7\u5730\u5740\u8df3\u8f6c\u5230\u5b58\u5728\u7684\u4e8c\u7ea7\u5730\u5740\u4e0a               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LOVOQ <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u8bf7\u6559\u5404\u4f4d\u5927\u4f6c \u5982\u4f55\u8bbe\u7f6e nginx \u53ef\u4f7f\u4e0d\u5b58\u5728\u7684\u4e8c\u7ea7\u5730\u5740\u8df3\u8f6c\u5230\u5b58\u5728\u7684\u4e8c\u7ea7\u5730\u5740\u4e0a<\/p>\n<p>\u6bd4\u5982\u8bf4 \u6211\u5728 dns \u914d\u7f6e\u4e86 1\uff0c2\uff0c\u548c*.110.com \u7684 A \u8bb0\u5f55\u3002\u5b9e\u9645\u914d\u7f6e\u4e86\u9875\u9762\u7684\u6709 1 \u8ddf 2 \u7684 110.com \uff0c\u6211\u60f3\u8ba9\u7528\u6237\u952e\u5165 3.110.com \u6216\u5176\u4ed6\u53ef\u80fd\u6027\u7684*.110.com \u90fd\u80fd\u8df3\u8f6c\u56de 1.110.com<\/p>\n<p>\u8bf7\u95ee\u4e0b\u8be5\u5982\u4f55\u8bbe\u7f6e \u767e\u5206\u611f\u8c22\uff01<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3468082\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cominghome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             server_name \u662f\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u7684\uff0c\u6240\u4ee5\u8fd9\u4e2a\u9700\u6c42\u5e94\u8be5\u5f88\u597d\u5b9e\u73b0\uff0c\u52a0\u4e00\u4e2a\u8fd9\u6837\u7684 server \u5c31\u884c<\/p>\n<p>&#8220;`<br \/>server {<br \/> listen 80;<br \/> server_name *.110.com;<\/p>\n<p> return 301 http:\/\/1.110.com\/$request_uri;<br \/>}<br \/>&#8220;`<\/p>\n<p>\u4f46\u662f\u4e0d\u6e05\u695a\u5bf9[1|2].110.com \u6709\u6ca1\u6709\u5f71\u54cd\uff0c\u81ea\u6d4b\u4e00\u4e0b                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3468083\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ragnaroks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9700\u8981 lua \u7b49\u62d3\u5c55\u914d\u5408,\u53d6\u5230\u7b2c\u4e09\u7ea7\u5b57\u7b26\u4e32\u505a\u5339\u914d,\u5982\u679c\u4e0d\u662f&#8221;1&#8243;,\u5219\u663e\u6027\u8df3\u8f6c,\u5426\u5219\u7ee7\u7eed                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3468084\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : LOVOQ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cominghome \u56de\u5934\u6211\u5c1d\u8bd5\u4e00\u4e0b\u56de\u590d\u6548\u679c\uff0c\u611f\u8c22\u7b54\u7591\u3002<\/p>\n<p>@ragnaroks \u6709\u70b9\u95e8\u69db\uff0c\u8fd8\u662f\u5e0c\u671b\u80fd\u901a\u8fc7\u901a\u914d\u7b26\u89e3\u51b3 2333 \u3002\u611f\u8c22\u7b54\u7591\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3468085\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : LOVOQ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cominghome 8 \u884c \u8df3\u4e0d\u4e86 \u86e4\u86e4\u86e4\u8fd8\u662f\u505c\u7559\u5728\u539f\u5730\u5740 \u6bd4\u5982 aaa.110.com \u8fd8\u662f\u539f\u5730\u5740\u3002\u800c\u4e14\u7531\u4e8e\u6211\u5f00\u4e86 404 \u548c\u5355\u7ad9 https \u6240\u4ee5\u76f4\u63a5\u63d0\u793a\u8bc1\u4e66\u65e0\u6548\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3468086\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cominghome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @LOVOQ \u6211\u8fd9\u6d4b\u8bd5\u662f\u597d\u7684<br \/>demo.conf<br \/>&#8220;`<br \/>server {<br \/> listen 80;<br \/> server_name *.110.com;<\/p>\n<p> return 301 http:\/\/1.110.com$request_uri;<br \/>}<\/p>\n<p>server {<br \/> listen 80;<br \/> server_name 1.110.com;<\/p>\n<p> location \/ {<br \/> default_type text\/plain;<br \/> return 200 &#8220;Hello world..&#8221;;<br \/> }<\/p>\n<p>}<br \/>&#8220;`<br \/>host<br \/>&#8220;`<br \/>127.0.0.1 a.110.com b.110.com 1.110.com<br \/>&#8220;`<\/p>\n<p>\u8bbf\u95ee a\/b.110.com \u90fd\u80fd 301 \u5230 1.110.com                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3468087\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : LOVOQ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cominghome \u665a\u4e9b\u5b9e\u88c5\u540e\u56de\u590d \u611f\u8c22\u8d50\u6559 \u8f9b\u82e6\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559\u5404\u4f4d\u5927\u4f6c \u5982\u4f55\u8bbe\u7f6e nginx&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\/160428"}],"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=160428"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/160428\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=160428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=160428"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=160428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}