{"id":194,"date":"2018-02-12T14:02:25","date_gmt":"2018-02-12T06:02:25","guid":{"rendered":"https:\/\/wp.yaanren.win\/?p=194"},"modified":"2018-02-12T14:02:25","modified_gmt":"2018-02-12T06:02:25","slug":"seafile%e4%b8%adhttps%e4%bd%bf%e7%94%a8%e9%9d%9e443%e7%ab%af%e5%8f%a3%e7%99%bb%e5%bd%95%e9%a1%b5%e8%b7%b3%e8%bd%ac%e5%87%ba%e9%94%99%e7%9a%84%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/wp.625300.xyz\/?p=194","title":{"rendered":"seafile\u4e2dhttps\u4f7f\u7528\u975e443\u7aef\u53e3\u767b\u5f55\u9875\u8df3\u8f6c\u51fa\u9519\u7684\u89e3\u51b3"},"content":{"rendered":"<div id=\"topic-title\" class=\"ember-view\">\n<div class=\"container\">\n<div class=\"title-wrapper\">\n<p>\u8f6c\u81ea\uff1ahttps:\/\/bbs.seafile.com\/t\/topic\/4727<\/p>\n<p>\u4f7f\u7528nginx\u90e8\u7f72\u7684HTTPS\u3002\u7531\u4e8e\u5bbd\u5e26443\u4e5f\u5f00\u59cb\u88ab\u5c01\u6740\uff0cHTTPS\u4f7f\u7528\u4e86\u4e00\u4e2a\u975e443\u7aef\u53e3\uff08\u4f8b\u59821234\uff09\uff0c\u4e4b\u524d\u4e00\u76f4\u6b63\u5e38\u3002\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u5efa\u8bae\u6539\u7528WSGI\u540e\u53d1\u73b0\u5982\u679c\u7528\u6237\u672a\u767b\u5f55\uff0c\u8bbf\u95eehttps:\/\/xxx:1234\u540e\uff0c\u767b\u5f55\u9875\u9762\u4f1a\u8df3\u8f6c\u5230http:\/\/xxx\/accounts\/login\/?next=\/\uff08\u6ca1\u5e26\u7aef\u53e3\u53f7\uff09\uff0c\u5bfc\u81f4\u51fa\u9519\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"container posts\">\n<div class=\"row\">\n<section id=\"topic\" class=\"topic-area\" data-topic-id=\"4727\">\n<div class=\"posts-wrapper\">\n<div id=\"ember807\" class=\"ember-view\">\n<div class=\"post-stream\">\n<div class=\"topic-post clearfix topic-owner regular\">\n<article id=\"post_1\" class=\"boxed onscreen-post\" data-post-id=\"9063\" data-user-id=\"884\">\n<div class=\"row\">\n<div class=\"topic-body clearfix\">\n<div class=\"regular contents\">\n<div class=\"cooked\">\n<p>\u6700\u540e\u53d1\u73b0\u662fnginx\u914d\u7f6e\u95ee\u9898\uff0c\u670d\u52a1\u5347\u7ea7\u6307\u5f15\uff08<a href=\"https:\/\/manual.seafile.com\/changelog\/server-changelog.html\" rel=\"nofollow noopener\">https:\/\/manual.seafile.com\/changelog\/server-changelog.html<span class=\"badge badge-notification clicks\" title=\"6 \u6b21\u70b9\u51fb\">6<\/span><\/a>\u00a0\u548c<br \/>\n<a href=\"http:\/\/manual-cn.seafile.com\/deploy\/https_with_nginx.html\" rel=\"nofollow noopener\">http:\/\/manual-cn.seafile.com\/deploy\/https_with_nginx.html<\/a>\u00a0\uff09\u4e2d\u56e0\u4e3a\u662f\u4f7f\u7528\u6807\u51c6443\u7aef\u53e3\u6240\u4ee5\u6ca1\u6709\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<p>\u9700\u8981\u4fee\u6539\u914d\u7f6e\u4e3a<br \/>\nproxy_set_header Host $http_host; \uff08\u4f18\u9009\uff0c\u7406\u7531\uff1a<a href=\"https:\/\/stackoverflow.com\/questions\/15414810\/whats-the-difference-of-host-and-http-host-in-nginx%EF%BC%8C\" rel=\"nofollow noopener\">https:\/\/stackoverflow.com\/questions\/15414810\/whats-the-difference-of-host-and-http-host-in-nginx\uff0c<span class=\"badge badge-notification clicks\" title=\"7 \u6b21\u70b9\u51fb\">7<\/span><\/a>\u00a0\u611f\u8c22lian\u7684\u5efa\u8bae\uff09<\/p>\n<p>\u6216\uff1aproxy_set_header Host $host:$server_port;<\/p>\n<p>\u8fd9\u6837\u5728\u4f20\u9012\u8bf7\u6c42\u5230\u540e\u7aefseafile\u7684\u65f6\u5019\u624d\u4f1a\u643a\u5e26\u4e0a\u6b63\u5728\u4f7f\u7528\u7684\u975e443\u7aef\u53e3\u53f7\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u81ea\uff1ahttps:\/\/bbs.seafile.com\/t\/topic\/4727 \u4f7f\u7528nginx\u90e8\u7f72\u7684HTTPS&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-33"],"_links":{"self":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=194"}],"version-history":[{"count":0,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts\/194\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}