{"id":29528,"date":"2020-02-11T09:43:55","date_gmt":"2020-02-11T01:43:55","guid":{"rendered":"http:\/\/4563.org\/?p=29528"},"modified":"2020-02-11T09:43:55","modified_gmt":"2020-02-11T01:43:55","slug":"%e5%8f%8d%e4%bb%a3%e5%a4%a7%e4%bd%ac-%e6%b1%82%e5%8a%a9%e4%b8%80%e4%b8%aa%e9%97%ae%e9%a2%98%e5%91%a2","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=29528","title":{"rendered":"\u53cd\u4ee3\u5927\u4f6c \u6c42\u52a9\u4e00\u4e2a\u95ee\u9898\u5462"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u602a\u4eba<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-6 21:33:43\t<\/p>\n<h3>\u53cd\u4ee3\u5927\u4f6c \u6c42\u52a9\u4e00\u4e2a\u95ee\u9898\u5462<\/h3>\n<p>  \t\t\u4e00\u4e2a\u524d\u7aef\u53ea\u80fd\u53cd\u4ee3\u4e00\u4e2a\u7f51\u7ad9\u5417\uff1f<\/p>\n<p>  \u8fd8\u662f\u540e\u7aef\u53ea\u80fd\u4e00\u4e2a\u7f51\u7ad9\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hpp<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-6 22:06:11\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u3002\u3002\u3002\u6839\u672c\u542c\u4e0d\u61c2\u4f60\u5728\u8bf4\u4ec0\u4e48\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u602a\u4eba<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-6 22:18:36\t<\/p>\n<h3><\/h3>\n<p>  \t\thpp \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-6 22:06<br \/>  \u3002\u3002\u3002\u6839\u672c\u542c\u4e0d\u61c2\u4f60\u5728\u8bf4\u4ec0\u4e48\u3002<\/p>\n<p> \u610f\u601d\uff1a<br \/>  A\u5c0f\u9e21\u505a\u524d\u7aef \u7ed1\u5b9a\u4e86 www.aa.com www.bb.com<br \/>  b\u5c0f\u9e21\u505a\u540e\u7aef\u7ed1\u5b9a\u4e86 web.aa.com web.bb.com<\/p>\n<p>  \u8bbe\u7f6e\u4e86\u53cd\u4ee3 \u53ea\u6709www.aa.com\u80fd\u6b63\u5e38\u53cd\u4ee3web.aa.com \u7136\u800c www.bb.com\u4e0d\u80fd\u6b63\u5e38\u53cd\u4ee3\u5230web.bb.com<\/p>\n<p>  A\u5c0f\u9e21\u8bbe\u7f6e\u4e86 host<\/p>\n<p>  127.0.0.1 web.aa.com<br \/>  127.0.0.1 web.bb.com<\/p>\n<p>  \u8fd9\u6837\u80fd\u61c2\u4e48\uff1f \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u602a\u4eba<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-6 22:56:28\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7528bt 5.9\u7248\u672c\u3002\u3002\u9876\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>wangjiankai<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-7 01:03:17\t<\/p>\n<h3><\/h3>\n<p>  \t\tnginx\u914d\u7f6e\u6587\u4ef6\u4e0d\u653e\u51fa\u6765\uff0c\u600e\u4e48\u627e\u95ee\u9898\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>jiangcuo<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-7 07:40:04\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5f53\u7136\u53ef\u4ee5\u4e86\uff0cnginx\u652f\u6301\u6cdb\u89e3\u6790\uff0c\u6307\u5b9a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u602a\u4eba<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-7 20:14:15\t<\/p>\n<h3><\/h3>\n<p>  \t\twangjiankai \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-7 01:03<br \/>  nginx\u914d\u7f6e\u6587\u4ef6\u4e0d\u653e\u51fa\u6765\uff0c\u600e\u4e48\u627e\u95ee\u9898<\/p>\n<p> server<br \/>  {<br \/>  &nbsp; &nbsp; listen 80;<br \/>  &nbsp; &nbsp; server_name abc.com www.abc.com;<br \/>  &nbsp; &nbsp; index index.php index.html index.htm default.php default.htm default.html;<br \/>  &nbsp; &nbsp; root \/www\/wwwroot\/abc.com;<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; #SSL-START SSL\u76f8\u5173\u914d\u7f6e\uff0c\u8bf7\u52ff\u5220\u9664\u6216\u4fee\u6539\u4e0b\u4e00\u884c\u5e26\u6ce8\u91ca\u7684404\u89c4\u5219<br \/>  &nbsp; &nbsp; #error_page 404\/404.html;<br \/>  &nbsp; &nbsp; #SSL-END<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; #ERROR-PAGE-START\u9519\u8bef\u9875\u914d\u7f6e\uff0c\u53ef\u4ee5\u6ce8\u91ca\u3001\u5220\u9664\u6216\u4fee\u6539<br \/>  &nbsp; &nbsp; error_page 404 \/404.html;<br \/>  &nbsp; &nbsp; error_page 502 \/502.html;<br \/>  &nbsp; &nbsp; #ERROR-PAGE-END<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; #PHP-INFO-STARTPHP\u5f15\u7528\u914d\u7f6e\uff0c\u53ef\u4ee5\u6ce8\u91ca\u6216\u4fee\u6539<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; #PROXY-START<br \/>  &nbsp; &nbsp; location ~ \/purge(\/.*) { <br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_cache_purge cache_one $host$request_uri$is_args$args;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;#access_log\/www\/wwwlogs\/abc.com_purge_cache.log;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; location \/ <br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass http:\/\/web.abc.com;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Host $host;<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 \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header REMOTE-HOST $remote_addr;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <br \/>  &nbsp; &nbsp;&nbsp; &nbsp;#\u6301\u4e45\u5316\u8fde\u63a5\u76f8\u5173\u914d\u7f6e<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;#proxy_connect_timeout 30s;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;#proxy_read_timeout 86400s;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;#proxy_send_timeout 30s;<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;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;add_header X-Cache $upstream_cache_status;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Accept-Encoding &quot;&quot;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;sub_filter &quot;web.abc.com&quot; &quot;www.abc.com&quot;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;sub_filter_once off;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;expires 12h;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; location ~ .*.(php|jsp|cgi|asp|aspx|flv|swf|xml)?$<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Host $host;<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 \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header REMOTE-HOST $remote_addr;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass http:\/\/web.abc.com;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Accept-Encoding &quot;&quot;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;sub_filter &quot;web.abc.com&quot; &quot;www.abc.com&quot;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;sub_filter_once off;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; location ~ .*.(html|htm|png|gif|jpeg|jpg|bmp|js|css)?$<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Host $host;<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 \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header REMOTE-HOST $remote_addr;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass http:\/\/web.abc.com;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;#\u7f13\u5b58\u76f8\u5173\u914d\u7f6e<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;#proxy_cache cache_one;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;#proxy_cache_key $host$request_uri$is_args$args;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;#proxy_cache_valid 200 304 301 302 1h;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Accept-Encoding &quot;&quot;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;sub_filter &quot;web.abc.com&quot; &quot;www.abc.com&quot;;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;sub_filter_once off;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;expires 24h;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; #PROXY-END<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; include enable-php-71.conf;<br \/>  &nbsp; &nbsp; #PHP-INFO-END<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; #REWRITE-START URL\u91cd\u5199\u89c4\u5219\u5f15\u7528,\u4fee\u6539\u540e\u5c06\u5bfc\u81f4\u9762\u677f\u8bbe\u7f6e\u7684\u4f2a\u9759\u6001\u89c4\u5219\u5931\u6548<br \/>  &nbsp; &nbsp; include \/www\/server\/panel\/vhost\/rewrite\/abc.com.conf;<br \/>  &nbsp; &nbsp; #REWRITE-END<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; #\u7981\u6b62\u8bbf\u95ee\u7684\u6587\u4ef6\u6216\u76ee\u5f55<br \/>  &nbsp; &nbsp; location ~ ^\/(.user.ini|.htaccess|.git|.svn|.project|LICENSE|README.md)<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;return 404;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; #\u4e00\u952e\u7533\u8bf7SSL\u8bc1\u4e66\u9a8c\u8bc1\u76ee\u5f55\u76f8\u5173\u8bbe\u7f6e<br \/>  &nbsp; &nbsp; location ~ .well-known{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;allow all;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; access_log\/www\/wwwlogs\/abc.com.log;<br \/>  &nbsp; &nbsp; error_log\/www\/wwwlogs\/abc.com.error.log;<br \/>  }<\/p>\n<p>  nginx\u914d\u7f6e\u6587\u4ef6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>edear<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-7 20:22:45\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e00\u4e2a\u524d\u7aef\u53ef\u4ee5\u53cd\u4ee3\u65e0\u6570\u4e2a\u7f51\u7ad9\uff08\u540e\u7aef\uff09\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u602a\u4eba<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-7 20:30:26\t<\/p>\n<h3><\/h3>\n<p>  \t\tedear \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-7 20:22<br \/>  \u4e00\u4e2a\u524d\u7aef\u53ef\u4ee5\u53cd\u4ee3\u65e0\u6570\u4e2a\u7f51\u7ad9\uff08\u540e\u7aef\uff09<\/p>\n<p> \u53cd\u4ee3\u5230\u540e\u7aefIP\u7684\u7f51\u9875\u4e0d\u662f\u540e\u7aef\u57df\u7f51\u7ad9\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u602a\u4eba \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1&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\/29528"}],"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=29528"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/29528\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29528"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}