{"id":428,"date":"2020-06-08T10:31:42","date_gmt":"2020-06-08T02:31:42","guid":{"rendered":"https:\/\/tygtw.ddns.net\/?p=428"},"modified":"2020-06-08T10:31:42","modified_gmt":"2020-06-08T02:31:42","slug":"%e5%90%8c%e4%b8%80%e5%80%8bip%e4%bd%8d%e5%9d%80%e4%bd%bf%e7%94%a8%e4%b8%8d%e5%90%8c%e7%b6%b2%e7%ab%99%e5%90%8d%e7%a8%b1%e8%99%9b%e6%93%ac%e7%b6%b2%e7%ab%99%ef%bc%8c%e5%90%8c%e6%99%82%e4%bd%bf","status":"publish","type":"post","link":"https:\/\/tygtw.ddns.net\/wordpress\/?p=428","title":{"rendered":"\u540c\u4e00\u500bIP\u4f4d\u5740\u4f7f\u7528\u4e0d\u540c\u7db2\u7ad9\u540d\u7a31(\u865b\u64ec\u7db2\u7ad9)\uff0c\u540c\u6642\u4f7f\u7528\u5b89\u5168\u6191\u8b49SSL"},"content":{"rendered":"<p>\u540c\u4e00\u500bIP\u4f4d\u5740\u4f7f\u7528\u4e0d\u540c\u7db2\u7ad9\u540d\u7a31(\u865b\u64ec\u7db2\u7ad9)\uff0c\u540c\u6642\u4f7f\u7528\u5b89\u5168\u6191\u8b49SSL<br \/>\n\u4f8b\u5982\u4ee5\u4e0b\u5169\u500b\u4e0d\u540c\u7db2\u7ad9\u540d\u7a31\uff0c\u4f7f\u7528\u7684\u662f\u540c\u4e00\u500bIP\u4f4d\u5740\u3002<br \/>\n<a href=\"https:\/\/tygtw.ddns.net\" target=\"_blank\" rel=\"noopener noreferrer\">[https:\/\/tygtw.ddns.net]<\/a><br \/>\n<a href=\"https:\/\/lohas.ddns.net\" target=\"_blank\" rel=\"noopener noreferrer\">[https:\/\/lohas.ddns.net]<\/a><\/p>\n<p>\u8a2d\u5b9a\u524d\uff0c\u5148\u524d\u5f80\u00a0<a href=\"https:\/\/www.noip.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.noip.com\/<\/a><\/p>\n<p>\u7533\u8acb\u865b\u64ec\u4e3b\u6a5f\u7684\u7db2\u57df\u540d\u7a31\uff0c\u4f8b\u5982https:\/\/tygtw.ddns.net (\u4e3b\u7db2\u7ad9)\u8207https:\/\/lohas.ddns.net (\u865b\u64ec\u7db2\u7ad9)<\/p>\n<p>\u4e0a\u8ff0\u5169\u500b\u7db2\u7ad9\u540d\u7a31\u96d6\u4e0d\u540c\uff0c\u537b\u662f\u4f7f\u7528\u540c\u4e00\u53f0\u4e3b\u6a5f\u3001\u540c\u4e00\u500bIP\u4f4d\u5740\uff0c\u4f46\u7db2\u7ad9\u5167\u5bb9\u5404\u81ea\u7368\u7acb\u3002<\/p>\n<p>\u539f\u7406\u662f\u5229\u7528apache\u8a2d\u5b9a\u5c0d\u61c9\u4e0d\u540c\u7684\u7db2\u7ad9\u76ee\u9304\uff0c\u6b64\u5916\uff0c\u5982\u679c\u9084\u8981\u4f7f\u7528\u5b89\u5168\u6191\u8b49https<br \/>\n\u53ef\u524d\u5f80<a href=\"https:\/\/www.sslforfree.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.sslforfree.com<\/a> \u7533\u8acb\u514d\u8cbb\u7684\u5b89\u5168\u6191\u8b49\uff0c<br \/>\n\u5169\u500b\u7db2\u7ad9\u540d\u7a31\u5c31\u8981\u7533\u8acb\u5169\u6b21\u3002<\/p>\n<p>\u4f5c\u6cd5\u7c21\u8ff0\u5982\u4e0b(\u4ee5Apache 2.4.23\u70ba\u4f8b)\uff1a<br \/>\n\u9996\u5148\u4fee\u6539<br \/>\n\/etc\/httpd\/conf\/httpd.conf<br \/>\n\u65b0\u589e\u4ee5\u4e0b\u5167\u5bb9<br \/>\n&lt;VirtualHost *:80&gt;<br \/>\nServerAdmin test@gmail.com<br \/>\nDocumentRoot &#8220;\/var\/www\/\u865b\u64ec\u7db2\u7ad9\u76ee\u9304&#8221;<br \/>\nServerName lohas.ddns.net<br \/>\nServerAlias www.lohas.ddns.net<br \/>\nErrorLog &#8220;\/var\/logs\/lohas\/error_log&#8221;<br \/>\nCustomLog &#8220;\/var\/logs\/lohas\/access_log&#8221; common<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p>&lt;virtualhost *:443&gt;<br \/>\nDocumentRoot &#8220;\/var\/www\/\u865b\u64ec\u7db2\u7ad9\u76ee\u9304\/&#8221;<br \/>\nServerName lohas.ddns.net<br \/>\n&lt;directory &#8220;\/var\/www\/\u65b0\u76ee\u9304\/&#8221;&gt;<br \/>\nAllowOverride All<br \/>\nOptions FollowSymLinks<br \/>\nAddDefaultCharset UTF-8<br \/>\nOrder allow,deny<br \/>\n&lt;\/Directory&gt;<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p>2.\u524d\u5f80<a href=\"https:\/\/www.sslforfree.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.sslforfree.com<\/a>\u7533\u8acbSSL\u5b89\u5168\u6191\u8b49<\/p>\n<p>3.\u5efa\u7acb\u653e\u7f6e\u7b2c2\u500b\u865b\u64ec\u7db2\u7ad9\u7684\u6191\u8b49\u76ee\u9304\u5982:<br \/>\nmkdir \/etc\/httpd\/conf\/ssl2<\/p>\n<p>ca_bundle.crt<br \/>\ncertificate.crt<br \/>\nprivate.key<br \/>\n\u518d\u5c07\u4ee5\u4e0a3\u500b\u6a94\u6848\u4e0a\u50b3\u81f3\u4ee5\u4e0b\u4f4d\u7f6e<br \/>\n\/etc\/httpd\/conf\/ssl2<\/p>\n<p>\u4fee\u6539<br \/>\n\/etc\/httpd\/conf.d\/ssl.conf<\/p>\n<p>\u52a0\u4e0a\u7b2c2\u500b\u865b\u64ec\u7db2\u7ad9\u8a2d\u5b9a<br \/>\n&lt;VirtualHost _default_:443&gt;<br \/>\nDocumentRoot &#8220;\/var\/www\/\u865b\u64ec\u7db2\u7ad9\u76ee\u9304&#8221;<br \/>\nServerName lohas.ddns.net:443<br \/>\nServerAlias www.lohas.ddns.net:443<br \/>\nServerAdmin test@gmail.com<\/p>\n<p>SSLCertificateFile \/etc\/httpd\/conf\/ssl2\/certificate.crt<br \/>\nSSLCertificateKeyFile \/etc\/httpd\/conf\/ssl2\/private.key<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p>\u5b8c\u6210\u8a2d\u5b9a\u5f8c\u91cd\u555fapache\u670d\u52d9<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u540c\u4e00\u500bIP\u4f4d\u5740\u4f7f\u7528\u4e0d\u540c\u7db2\u7ad9\u540d\u7a31(\u865b\u64ec\u7db2\u7ad9)\uff0c\u540c\u6642\u4f7f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"h5ap_radio_sources":[],"footnotes":""},"categories":[4],"tags":[],"class_list":["post-428","post","type-post","status-publish","format-standard","hentry","category-4","wpcat-4-id"],"_links":{"self":[{"href":"https:\/\/tygtw.ddns.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tygtw.ddns.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tygtw.ddns.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tygtw.ddns.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tygtw.ddns.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=428"}],"version-history":[{"count":0,"href":"https:\/\/tygtw.ddns.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/428\/revisions"}],"wp:attachment":[{"href":"https:\/\/tygtw.ddns.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tygtw.ddns.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tygtw.ddns.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}