{"id":435,"date":"2017-11-28T11:46:21","date_gmt":"2017-11-28T03:46:21","guid":{"rendered":"http:\/\/luchanglong.com.cn\/?p=435"},"modified":"2017-11-28T11:47:48","modified_gmt":"2017-11-28T03:47:48","slug":"nginx-http%e5%bc%ba%e5%88%b6%e8%b7%b3%e8%bd%achttps%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/blog.la998.com\/?p=435","title":{"rendered":"nginx  http\u5f3a\u5236\u8df3\u8f6chttps\u914d\u7f6e\u6587\u4ef6"},"content":{"rendered":"<pre class=\"lang:default decode:true  \">server {\r\n\r\n        listen 80;\r\n        listen [::]:80;\r\n        server_name xxxx.com;\r\n\r\n        rewrite ^(.*)$  https:\/\/$host$1 permanent;\r\n\r\n}\r\nserver {\r\n\r\n        listen 443 ssl;\r\n\r\n        server_name   xxx.com la998.com;\r\n\r\n        #rewrite ^(.*)$  https:\/\/$host$1 permanent;\r\n\r\n        ssl on;\r\n        ssl_certificate   cert\/213972949720863.pem;\r\n        ssl_certificate_key  cert\/213972949720863.key;\r\n        ssl_session_timeout 5m;\r\n        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;\r\n        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\r\n        ssl_prefer_server_ciphers on;\r\n\r\n        root \/www\/www.xxxxx.com;\r\n\r\n        index index.php index.html;\r\n\r\n        location \/ {\r\n                try_files $uri $uri\/ =404;\r\n        }\r\n        location ~ \\.php$ {\r\n                include snippets\/fastcgi-php.conf;\r\n\r\n                # With php7.0-cgi alone:\r\n                #fastcgi_pass 127.0.0.1:9000;\r\n                # With php7.0-fpm:\r\n                fastcgi_pass unix:\/run\/php\/php7.0-fpm.sock;\r\n                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n                include fastcgi_params;\r\n        }\r\n        location ~ \/\\.ht {\r\n                deny all;\r\n        }\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>server { listen 80; listen [::]:80; server_name xxxx.co &hellip; <a href=\"https:\/\/blog.la998.com\/?p=435\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">nginx  http\u5f3a\u5236\u8df3\u8f6chttps\u914d\u7f6e\u6587\u4ef6<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-435","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/posts\/435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.la998.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=435"}],"version-history":[{"count":2,"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/posts\/435\/revisions"}],"predecessor-version":[{"id":437,"href":"https:\/\/blog.la998.com\/index.php?rest_route=\/wp\/v2\/posts\/435\/revisions\/437"}],"wp:attachment":[{"href":"https:\/\/blog.la998.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.la998.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.la998.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}