{"id":47585,"date":"2020-03-07T01:18:28","date_gmt":"2020-03-06T17:18:28","guid":{"rendered":"http:\/\/4563.org\/?p=47585"},"modified":"2020-03-07T01:18:28","modified_gmt":"2020-03-06T17:18:28","slug":"%e7%81%ab%e8%bd%a6%e5%a4%b4%e9%97%ae%e9%a2%98%ef%bc%81-%e5%a4%a7%e4%bd%ac%e5%b8%ae%e4%b8%aa%e5%bf%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=47585","title":{"rendered":"\u706b\u8f66\u5934\u95ee\u9898\uff01 \u5927\u4f6c\u5e2e\u4e2a\u5fd9"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>hap<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u706b\u8f66\u5934\u95ee\u9898\uff01 \u5927\u4f6c\u5e2e\u4e2a\u5fd9<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 hap \u4e8e 2020-3-7 01:13 \u7f16\u8f91 <\/p>\n<p> \u706b\u8f66\u5934\u95ee\u9898\uff01 \u8bf7\u6c42\u5927\u4f6c\u5e2e\u4e2a\u5fd9<br \/>  \u7a0b\u5e8fdiscuz3.4&nbsp; &nbsp;\u7f51\u4e0a\u627e\u7684\u514d\u767b\u9646\u63a5\u53e3{https:\/\/www.yudouyudou.com\/ziyuanxiazai\/gongjuchajian\/1416.html}<br \/>  \u7528\u4e86\u5b9d\u58547.1.1\u642d\u5efa\u7684dz3.4\u706b\u8f66\u5934\u4e00\u76f4\u83b7\u53d6\u4e0d\u5230\u5217\u8868\u3002<\/p>\n<p>  \u7136\u540e\u8bd5\u7740\u628adz3.4\u8f6c\u79fb\u5230\u53e6\u4e00\u4e2a\u5c0f\u9e21\u5b89\u88c5\u7684\u5b9d\u58545.9\uff08php\u7248\u672c\u8ddf\u6570\u636e\u5e93\u90fd\u4e00\u6837\uff09\u5c31\u80fd\u83b7\u53d6\uff01<br \/>  \u611f\u89c9\u5e94\u8be5\u662f\u914d\u7f6e\u6587\u4ef6\u7684\u95ee\u9898<\/p>\n<p>  \u5927\u4f6c\u4eec\u5e2e\u5fd9\u770b\u770b<\/p>\n<p>  5.9\u9762\u677f\u914d\u7f6e\u6587\u4ef6\uff08\u80fd\u83b7\u53d6\u5217\u8868\uff09<br \/>  server<br \/>  {<br \/>  &nbsp; &nbsp; listen 80;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; listen 443 ssl http2;<br \/>  &nbsp; &nbsp; server_name \u57df\u540d;<br \/>  &nbsp; &nbsp; index index.php index.html index.htm default.php default.htm default.html;<br \/>  &nbsp; &nbsp; root \/www\/wwwroot\/\u7ad9\u70b9\u76ee\u5f55;<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; #HTTP_TO_HTTPS_START<br \/>  &nbsp; &nbsp; if ($server_port !~ 443){<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;rewrite ^(\/.*)$ https:\/\/$host$1 permanent;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; #HTTP_TO_HTTPS_END<br \/>  &nbsp; &nbsp; ssl_certificate&nbsp; &nbsp; \/etc\/letsencrypt\/live\/\u57df\u540d\/fullchain.pem;<br \/>  &nbsp; &nbsp; ssl_certificate_key&nbsp; &nbsp; \/etc\/letsencrypt\/live\/\u57df\u540d\/privkey.pem;<br \/>  &nbsp; &nbsp; ssl_protocols TLSv1 TLSv1.1 TLSv1.2;<br \/>  &nbsp; &nbsp; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;<br \/>  &nbsp; &nbsp; ssl_prefer_server_ciphers on;<br \/>  &nbsp; &nbsp; ssl_session_cache shared:SSL:10m;<br \/>  &nbsp; &nbsp; ssl_session_timeout 10m;<br \/>  &nbsp; &nbsp; error_page 497https:\/\/$host$request_uri;<\/p>\n<p>  &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<br \/>  &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\/\u57df\u540d.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; location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;expires&nbsp; &nbsp;&nbsp; &nbsp;30d;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;error_log off;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;access_log off;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; location ~ .*.(js|css)?$<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;expires&nbsp; &nbsp;&nbsp; &nbsp;12h;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;error_log off;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;access_log off; <br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; access_log\/www\/wwwlogs\/\u57df\u540d.log;<br \/>  &nbsp; &nbsp; error_log\/www\/wwwlogs\/\u57df\u540d.error.log;<br \/>  }<\/p>\n<p>  7.1.1\u914d\u7f6e\u6587\u4ef6\uff08\u83b7\u53d6\u4e0d\u4e86\uff09<br \/>  server<br \/>  {<br \/>  &nbsp; &nbsp; listen 80;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; listen 443 ssl http2;<br \/>  &nbsp; &nbsp; server_name \u57df\u540d www.\u57df\u540d;<br \/>  &nbsp; &nbsp; index index.php index.html index.htm default.php default.htm default.html;<br \/>  &nbsp; &nbsp; root \/www\/wwwroot\/\u7ad9\u70b9\u76ee\u5f55;<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; #HTTP_TO_HTTPS_START<br \/>  &nbsp; &nbsp; if ($server_port !~ 443){<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;rewrite ^(\/.*)$ https:\/\/$host$1 permanent;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; #HTTP_TO_HTTPS_END<br \/>  &nbsp; &nbsp; ssl_certificate&nbsp; &nbsp; \/www\/server\/panel\/vhost\/cert\/\u57df\u540d.me\/fullchain.pem;<br \/>  &nbsp; &nbsp; ssl_certificate_key&nbsp; &nbsp; \/www\/server\/panel\/vhost\/cert\/\u57df\u540d.me\/privkey.pem;<br \/>  &nbsp; &nbsp; ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;<br \/>  &nbsp; &nbsp; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;<br \/>  &nbsp; &nbsp; ssl_prefer_server_ciphers on;<br \/>  &nbsp; &nbsp; ssl_session_cache shared:SSL:10m;<br \/>  &nbsp; &nbsp; ssl_session_timeout 10m;<br \/>  &nbsp; &nbsp; error_page 497https:\/\/$host$request_uri;<\/p>\n<p>  &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<br \/>  &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\/\u57df\u540d.me.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; location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;expires&nbsp; &nbsp;&nbsp; &nbsp;30d;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;error_log off;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;access_log \/dev\/null;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; location ~ .*.(js|css)?$<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;expires&nbsp; &nbsp;&nbsp; &nbsp;12h;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;error_log off;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;access_log \/dev\/null;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; access_log\/www\/wwwlogs\/\u57df\u540d.log;<br \/>  &nbsp; &nbsp; error_log\/www\/wwwlogs\/\u57df\u540d.error.log;<br \/>  }\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hap<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u56ca\u4e2d\u7f9e\u6da9\uff0c\u6709\u507f\u4e00\u5305\u70df\u94b1\uff0c\u8bf7\u5927\u4f6c\u6307\u5bfc\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>hap \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u706b\u8f66\u5934\u95ee\u9898&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\/47585"}],"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=47585"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/47585\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47585"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}