{"id":1224,"date":"2022-02-20T23:50:42","date_gmt":"2022-02-20T15:50:42","guid":{"rendered":"http:\/\/www.tra56.com\/?p=1224"},"modified":"2022-02-20T23:50:52","modified_gmt":"2022-02-20T15:50:52","slug":"1224","status":"publish","type":"post","link":"https:\/\/www.tra56.com\/1224.html","title":{"rendered":"\u5206\u4eab\u51e0\u4e2anginx\u914d\u7f6e\u6587\u4ef6(\u6ca1\u6709fpm\u914d\u7f6e)"},"content":{"rendered":"

\u5355swoole\u53cd\u5411\u4ee3\u7406\u914d\u7f6e
<\/p>\n

\n\n
\n
\n
1<\/div>\n
2<\/div>\n
3<\/div>\n
4<\/div>\n
5<\/div>\n
6<\/div>\n
7<\/div>\n
8<\/div>\n
9<\/div>\n
10<\/div>\n
11<\/div>\n
12<\/div>\n
13<\/div>\n
14<\/div>\n
15<\/div>\n
16<\/div>\n
17<\/div>\n
18<\/div>\n
19<\/div>\n<\/td>\n
\n
server<\/code><\/div>\n
{<\/code><\/div>\n
    <\/code>listen 80;<\/code><\/div>\n
    <\/code>server_name \u57df\u540d(\u7a7a\u683c\u5206\u9694\u53ef\u591a\u4e2a);<\/code><\/div>\n
 <\/div>\n
    <\/code>location ~ ^\/(\\.user.ini|\\.htaccess|\\.git|\\.svn|\\.project|LICENSE|README.md)<\/code><\/div>\n
    <\/code>{<\/code><\/div>\n
        <\/code>return<\/code> 404;<\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
    <\/code>client_max_body_size 20m;<\/code><\/div>\n
    <\/code>location \/ {<\/code><\/div>\n
        <\/code>proxy_pass_request_body on;<\/code><\/div>\n
        <\/code>proxy_pass_request_headers on;<\/code><\/div>\n
        <\/code>proxy_pass \u4ee3\u7406\u5730\u5740:\u7aef\u53e3\u53f7;<\/code><\/div>\n
        <\/code>proxy_http_version 1.1;<\/code><\/div>\n
        <\/code>proxy_set_header Upgrade $http_upgrade;<\/code># \u652f\u6301ws<\/code><\/div>\n
        <\/code>proxy_set_header Connection <\/code>"Upgrade"<\/code>;<\/code>#\u652f\u6301ws<\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
}<\/code><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

ssl swoole\u53cd\u5411\u4ee3\u7406<\/p>\n

\n\n
\n
\n
1<\/div>\n
2<\/div>\n
3<\/div>\n
4<\/div>\n
5<\/div>\n
6<\/div>\n
7<\/div>\n
8<\/div>\n
9<\/div>\n
10<\/div>\n
11<\/div>\n
12<\/div>\n
13<\/div>\n
14<\/div>\n
15<\/div>\n
16<\/div>\n
17<\/div>\n
18<\/div>\n
19<\/div>\n
20<\/div>\n
21<\/div>\n
22<\/div>\n
23<\/div>\n
24<\/div>\n
25<\/div>\n
26<\/div>\n
27<\/div>\n
28<\/div>\n
29<\/div>\n
30<\/div>\n
31<\/div>\n
32<\/div>\n
33<\/div>\n<\/td>\n
\n
server<\/code><\/div>\n
{<\/code><\/div>\n
    <\/code>listen 443 ssl http2;<\/code><\/div>\n
    <\/code>server_name \u57df\u540d;<\/code><\/div>\n
 <\/div>\n
    <\/code>ssl_certificate  <\/code>\/ssl<\/code>.pem\u8bc1\u4e66\u5730\u5740;<\/code><\/div>\n
    <\/code>ssl_certificate_key  <\/code>\/ssl<\/code>.key\u8bc1\u4e66key\u5730\u5740;<\/code><\/div>\n
    <\/code>ssl_protocols TLSv1 TLSv1.1 TLSv1.2;<\/code><\/div>\n
    <\/code>ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;<\/code><\/div>\n
    <\/code>ssl_prefer_server_ciphers on;<\/code><\/div>\n
    <\/code>ssl_session_cache shared:SSL:10m;<\/code><\/div>\n
    <\/code>ssl_session_timeout 10m;<\/code><\/div>\n
 <\/div>\n
    <\/code>location ~ ^\/(\\.user.ini|\\.htaccess|\\.git|\\.svn|\\.project|LICENSE|README.md)<\/code><\/div>\n
    <\/code>{<\/code><\/div>\n
        <\/code>return<\/code> 404;<\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
    <\/code>client_max_body_size 20m;<\/code><\/div>\n
    <\/code>location \/ {<\/code><\/div>\n
        <\/code>proxy_pass \u4ee3\u7406\u5730\u5740:\u7aef\u53e3\u53f7;<\/code><\/div>\n
        <\/code>proxy_http_version 1.1;<\/code><\/div>\n
        <\/code>proxy_set_header Upgrade $http_upgrade;<\/code><\/div>\n
        <\/code>proxy_set_header Connection <\/code>"Upgrade"<\/code>;<\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
}<\/code><\/div>\n
 <\/div>\n
server {<\/code><\/div>\n
    <\/code>listen 80;<\/code><\/div>\n
    <\/code>server_name \u57df\u540d;<\/code><\/div>\n
    <\/code>location \/ {<\/code><\/div>\n
        <\/code>rewrite ^\/(.*)$ https:<\/code>\/\/<\/code>\u57df\u540d\/$1 permanent;<\/code>##\u7531http\u81ea\u52a8\u8df3\u8f6c\u5230https<\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
}<\/code><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

vue\u4ee3\u7406\u7f51\u7ad9
<\/p>\n

\n\n
\n
\n
1<\/div>\n
2<\/div>\n
3<\/div>\n
4<\/div>\n
5<\/div>\n
6<\/div>\n
7<\/div>\n
8<\/div>\n
9<\/div>\n
10<\/div>\n
11<\/div>\n
12<\/div>\n
13<\/div>\n
14<\/div>\n
15<\/div>\n
16<\/div>\n
17<\/div>\n
18<\/div>\n
19<\/div>\n
20<\/div>\n
21<\/div>\n
22<\/div>\n
23<\/div>\n
24<\/div>\n
25<\/div>\n
26<\/div>\n
27<\/div>\n
28<\/div>\n
29<\/div>\n<\/td>\n
\n
server<\/code><\/div>\n
{<\/code><\/div>\n
    <\/code>listen 80;<\/code><\/div>\n
    <\/code>server_name \u57df\u540d(\u7a7a\u683c\u5206\u9694\u53ef\u591a\u4e2a);<\/code><\/div>\n
 <\/div>\n
    <\/code>location ~ ^\/(\\.user.ini|\\.htaccess|\\.git|\\.svn|\\.project|LICENSE|README.md)<\/code><\/div>\n
    <\/code>{<\/code><\/div>\n
        <\/code>return<\/code> 404;<\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
    <\/code>client_max_body_size 20m;<\/code><\/div>\n
    <\/code> <\/div>\n
    <\/code>location \/ {<\/code><\/div>\n
      <\/code>try_files $uri $uri\/ @rewrites;<\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
 <\/div>\n
    <\/code>location @rewrites {<\/code><\/div>\n
      <\/code>rewrite ^(.+)$ <\/code>\/index<\/code>.html last;<\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
 <\/div>\n
    <\/code>location ~* \\.(?:htm|html)$ {<\/code><\/div>\n
      <\/code>add_header Cache-Control <\/code>"private, no-store, no-cache, must-revalidate"<\/code>;<\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
 <\/div>\n
    <\/code>location ~* \\.(?:ico|css|js|gif|jpe?g|png|svg|ttf|woff|eot|crx)$ {<\/code><\/div>\n
      <\/code>expires max;<\/code><\/div>\n
      <\/code>add_header Pragma public;<\/code><\/div>\n
      <\/code>add_header Cache-Control <\/code>"public, must-revalidate, proxy-revalidate"<\/code>;<\/code><\/div>\n
    <\/code>}<\/code><\/div>\n
}<\/code><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n


<\/p>\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5355swoole\u53cd\u5411\u4ee3\u7406\u914d\u7f6e 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1224","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/1224"}],"collection":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/comments?post=1224"}],"version-history":[{"count":1,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/1224\/revisions"}],"predecessor-version":[{"id":1225,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/1224\/revisions\/1225"}],"wp:attachment":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/media?parent=1224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/categories?post=1224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/tags?post=1224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}