{"id":320,"date":"2015-09-12T02:41:39","date_gmt":"2015-09-12T02:41:39","guid":{"rendered":"http:\/\/onlinelab.info\/?p=320"},"modified":"2015-09-12T02:41:39","modified_gmt":"2015-09-12T02:41:39","slug":"cau-hinh-su-dung-ssl-cho-nhieu-website-su-dung-mot-dia-chi-ip","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2015\/09\/12\/cau-hinh-su-dung-ssl-cho-nhieu-website-su-dung-mot-dia-chi-ip\/","title":{"rendered":"C\u1ea5u h\u00ecnh s\u1eed d\u1ee5ng SSL cho nhi\u1ec1u website s\u1eed d\u1ee5ng m\u1ed9t \u0111\u1ecba ch\u1ec9 IP"},"content":{"rendered":"<div id=\"hometext\">SSL l\u00e0 vi\u1ebft t\u1eaft c\u1ee7a t\u1eeb Secure Sockets Layer. \u0110\u00e2y l\u00e0 m\u1ed9t ti\u00eau chu\u1ea9n an ninh c\u00f4ng ngh\u1ec7 to\u00e0n c\u1ea7u t\u1ea1o ra m\u1ed9t li\u00ean k\u1ebft \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a gi\u1eefa m\u00e1y ch\u1ee7 web v\u00e0 tr\u00ecnh duy\u1ec7t. Li\u00ean k\u1ebft n\u00e0y \u0111\u1ea3m b\u1ea3o t\u1ea5t c\u1ea3 c\u00e1c d\u1eef li\u1ec7u trao \u0111\u1ed5i gi\u1eefa m\u00e1y ch\u1ee7 web v\u00e0 tr\u00ecnh duy\u1ec7t lu\u00f4n \u0111\u01b0\u1ee3c b\u1ea3o m\u1eadt v\u00e0 an to\u00e0n. SSL \u0111\u1ea3m b\u1ea3o r\u1eb1ng t\u1ea5t c\u1ea3 c\u00e1c d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c truy\u1ec1n gi\u1eefa c\u00e1c m\u00e1y ch\u1ee7 web v\u00e0 c\u00e1c tr\u00ecnh duy\u1ec7t \u0111\u01b0\u1ee3c mang t\u00ednh ri\u00eang t\u01b0, t\u00e1ch r\u1eddi. SSL l\u00e0 m\u1ed9t chu\u1ea9n c\u00f4ng nghi\u1ec7p \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng b\u1edfi h\u00e0ng tri\u1ec7u trang web trong vi\u1ec7c b\u1ea3o v\u1ec7 c\u00e1c giao d\u1ecbch tr\u1ef1c tuy\u1ebfn v\u1edbi kh\u00e1ch h\u00e0ng c\u1ee7a h\u1ecd.<\/div>\n<p>B\u01b0\u1edbc 1: B\u1ea1n ti\u1ebfn h\u00e0nh c\u00e0i \u0111\u1eb7t c\u00e1c ph\u1ea7n m\u1ec1m li\u00ean quan:<\/p>\n<div class=\"bodytext\">\napt-get install libapache2-mod-gnutls<br \/>\na2dismod ssl<br \/>\na2enmod gnutls<\/div>\n<div class=\"bodytext\">\nB\u01b0\u1edbc 2: M\u1edf c\u1ed5ng 443 cho giao th\u1ee9c SSL b\u1eb1ng c\u00e1ch c\u1ea5u h\u00ecnh:<\/div>\n<div class=\"bodytext\">\nvim \/<span class=\"system\">etc\/apache2\/ports.conf<br \/>\nCh\u1ec9nh s\u1eeda v\u1edbi n\u1ed9i dung nh\u01b0 sau:<\/span><\/p>\n<pre>&lt;IfModule mod_ssl.c&gt;\u00a0\u00a0\u00a0\n# SSL name based virtual hosts are not yet supported, therefore no\u00a0\u00a0\u00a0\n# NameVirtualHost statement here\u00a0\u00a0\nListen 443&lt;\/IfModule&gt;<\/pre>\n<p><span class=\"system\">B\u01b0\u1edbc 3:T\u1ea1o t\u1eadp tin ssl.c\u00f2n v\u1edbi n\u1ed9i dung nh\u01b0 sau:<\/span><\/p>\n<p><span class=\"system\">vim \/etc\/apache2\/ssl.conf<\/span><\/p>\n<pre>NameVirtualHost IP_Address\/Domain:443\n&lt;VirtualHost IP_Address\/Domain:443&gt;\nServerName khanhnn.com.com:443\nGnuTLSEnable onGnuTLSCertificateFile \/etc\/apache2\/ssl-certs\/secure.khanhnn.com.crt\nGnuTLSKeyFile \/etc\/apache2\/ssl-certs\/secure.khanhnn.com.key\nGnuTLSPriorities NORMAL\nDocumentRoot \/web\/www1&lt;\/VirtualHost&gt;<\/pre>\n<p><span class=\"system\">B\u01b0\u1edbc 4:<br \/>\nTh\u00eam n\u1ed9i dung sau \u0111\u00e2y v\u00e0o file <\/span><span class=\"system\">\/etc\/apache2\/apache2.conf<\/span><\/p>\n<pre>Include \"\/etc\/apache2\/ssl.conf\"\n\n<span class=\"system\">B\u01b0\u1edbc 5: Kh\u1edfi \u0111\u1ed9ng l\u1ea1i apache v\u00e0 th\u01b0\u1edfng th\u1ee9c.<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSL l\u00e0 vi\u1ebft t\u1eaft c\u1ee7a t\u1eeb Secure Sockets Layer. \u0110\u00e2y l\u00e0 m\u1ed9t ti\u00eau chu\u1ea9n an ninh c\u00f4ng ngh\u1ec7 to\u00e0n c\u1ea7u t\u1ea1o ra m\u1ed9t li\u00ean k\u1ebft \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a gi\u1eefa m\u00e1y ch\u1ee7 web v\u00e0 tr\u00ecnh duy\u1ec7t.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}