{"id":2427,"date":"2024-10-31T17:53:05","date_gmt":"2024-10-31T08:53:05","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=2427"},"modified":"2024-10-31T17:53:05","modified_gmt":"2024-10-31T08:53:05","slug":"apache-%ec%84%9c%eb%b2%84%ec%97%90-%eb%ac%b4%eb%a3%8c-ssl-%ec%9d%b8%ec%a6%9d%ec%84%9c-%ec%a0%81%ec%9a%a9","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=2427","title":{"rendered":"Apache \uc11c\ubc84\uc5d0 \ubb34\ub8cc SSL \uc778\uc99d\uc11c \uc801\uc6a9"},"content":{"rendered":"<p><strong>I. \ubaa9\ud45c<\/strong><\/p>\n<p style=\"padding-left: 40px;\">\uc6b0\ubd84\ud22c \uc11c\ubc84\uc5d0 Let&#8217;s Encrypt\uc5d0\uc11c \uc81c\uacf5\ud558\uace0 \uc788\ub294 \ubb34\ub8cc SSL \uc778\uc99d\uc11c\ub97c \uc544\ud30c\uce58 \uc11c\ubc84\uc5d0\u00a0 \uc801\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud558\uc5ec \uc5f0\uad6c\ud55c\ub2e4.<\/p>\n<p><b>II. \uc5f0\uad6c<\/b> <b>\ubc0f<\/b> <b>\uac1c\ubc1c\ub0b4\uc6a9<\/b><\/p>\n<p><b>1. Certbot <\/b><b>\uc124\uce58<\/b><\/p>\n<table style=\"width: 100%; margin-left: 20px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>$ sudo apt update<\/p>\n<p>$ sudo apt install software-properties-common<\/p>\n<p>$ sudo add-apt-repository universe<\/p>\n<p>$ sudo add-apt-repository ppa:certbot\/certbot<\/p>\n<p>$ sudo apt update<\/p>\n<p>$ sudo apt install certbot python-certbot-apache<\/p>\n<p>\uc5d0\ub7ec\uc2dc sudo apt install certbot python3-certbot-apache<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><b>2. \uc778\uc99d\uc11c<\/b> <b>\ubc1c\uae09<\/b><\/p>\n<table style=\"width: 100%; margin-left: 20px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>sudo certbot &#8211;apache certonly<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\uc774\uba54\uc77c\uc785\ub825 : admin@moramcnt.com<\/li>\n<li>\uc774\uc6a9\uc57d\uad00 \ub3d9\uc758 \uc5d0 A<\/li>\n<li>\ub274\uc2a4\ub808\ud130 \uc218\uc2e0\uc5ec\ubd80 : \uac70\ubd80(N)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><b>3. Apache<\/b><b>\uc758<\/b><b> conf <\/b><b>\ud30c\uc77c<\/b> <b>\uc218\uc815<\/b><\/p>\n<p>$ vi \/etc\/apache2\/sites-available\/odc.mbizok.com.conf<\/p>\n<table style=\"width: 100%; margin-left: 20px; border-collapse: collapse; border-style: solid; border-color: #eeeeee; background-color: #ebebeb;\">\n<tbody>\n<tr>\n<td>&lt;VirtualHost *:80&gt;<\/p>\n<p>ServerAdmin admin@moramcnt.com<\/p>\n<p>DocumentRoot \/home\/cinema\/Service\/CinemaWebSolution\/cinema-backend-web<\/p>\n<p>DirectoryIndex index.htm index.html index.jsp index.do<\/p>\n<p>ServerName odc.mbizok.com<\/p>\n<p>&lt;Directory \/home\/cinema\/Service\/CinemaWebSolution\/cinema-backend-web&gt;<\/p>\n<p>Options FollowSymLinks<\/p>\n<p>AllowOverride All<\/p>\n<p>Require all granted<\/p>\n<p>&lt;\/Directory&gt;<\/p>\n<p>LogLevel warn<\/p>\n<p>ErrorLog \/var\/log\/apache2\/error-odc.mbizok.com.log<\/p>\n<p>CustomLog \/var\/log\/apache2\/access-odc.mbizok.com.log combined<\/p>\n<p>&lt;\/VirtualHost&gt;<\/p>\n<p>&lt;IfModule mod_ssl.c&gt;<\/p>\n<p>&lt;VirtualHost *:443&gt;<\/p>\n<p>ServerAdmin admin@moramcnt.com<\/p>\n<p>DocumentRoot \/home\/cinema\/Service\/CinemaWebSolution\/cinema-backend-web<\/p>\n<p>DirectoryIndex index.htm index.html index.jsp index.do<\/p>\n<p>ServerName odc.mbizok.com<\/p>\n<p>&lt;Directory \/home\/cinema\/Service\/CinemaWebSolution\/cinema-backend-web&gt;<\/p>\n<p>Options FollowSymLinks<\/p>\n<p>AllowOverride All<\/p>\n<p>Require all granted<\/p>\n<p>&lt;\/Directory&gt;<\/p>\n<p>LogLevel warn<\/p>\n<p>ErrorLog \/var\/log\/apache2\/error-odc.mbizok.com.log<\/p>\n<p>CustomLog \/var\/log\/apache2\/access-odc.mbizok.com.log combined<\/p>\n<p>SSLEngine on<\/p>\n<p>SSLCertificateFile\u00a0\u00a0\u00a0\u00a0\u00a0 \/etc\/letsencrypt\/live\/odc.mbizok.com\/cert.pem<\/p>\n<p>SSLCertificateKeyFile\u00a0\u00a0 \/etc\/letsencrypt\/live\/odc.mbizok.com\/privkey.pem<\/p>\n<p>SSLCertificateChainFile \/etc\/letsencrypt\/live\/odc.mbizok.com\/chain.pem<\/p>\n<p>&lt;\/VirtualHost&gt;<\/p>\n<p>&lt;\/IfModule&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><b>4. \ubc29\ud654\ubcbd<\/b> <b>\ubc0f<\/b> <b>\uacf5\uc720\uae30<\/b> <b>\uc124\uc815<\/b><\/p>\n<p style=\"padding-left: 40px;\">1) \ubc29\ud654\ubcbd \uc624\ud508<\/p>\n<p style=\"padding-left: 80px;\">ufw allow 443\/tcp<\/p>\n<p style=\"padding-left: 40px;\">2) \uacf5\uc720\uae30<\/p>\n<p style=\"padding-left: 80px;\">\ud639\uc2dc \ub0b4\ubd80\uc5d0\uc11c \uc0ac\uc6a9\ud55c\ub2e4\uba74 \uacf5\uc720\uae30\uc758 \ud3ec\ud2b8\ud3ec\uc6cc\ub529\uc5d0\uc11c 443 \ud3ec\ud2b8\uc5d0 \ub300\ud558\uc5ec \uc124\uc815\ud574\uc918\uc57c \ud55c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>III. \uacb0\ub860<\/strong><\/p>\n<p>\uc774\uc81c \ud574\ub2f9\uc6f9\uc0ac\uc774\ud2b8\ub97c HTTPS\ub97c \ud1b5\ud574 \uc811\uc18d\ud560\uc218 \uc788\uac8c \ub418\uc5c8\ub2e4. \ub2e8 \ubb34\ub8cc\uc778 \uad00\uacc4\ub85c 3\ub2ec\uc5d0 \ud55c\ubc88\uc529 \uc778\uc99d\uc11c\ub97c \uc5c5\ub370\uc774\ud2b8 \ud574\uc57c\ud55c\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I. \ubaa9\ud45c \uc6b0\ubd84\ud22c \uc11c\ubc84\uc5d0 Let&#8217;s Encrypt\uc5d0\uc11c \uc81c\uacf5\ud558\uace0 \uc788\ub294 \ubb34\ub8cc SSL \uc778\uc99d\uc11c\ub97c \uc544\ud30c\uce58 \uc11c\ubc84\uc5d0\u00a0 \uc801\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud558\uc5ec \uc5f0\uad6c\ud55c\ub2e4. II. \uc5f0\uad6c \ubc0f \uac1c\ubc1c\ub0b4\uc6a9 1. Certbot \uc124\uce58 $ sudo apt update $ sudo apt install software-properties-common $ sudo add-apt-repository universe $ sudo add-apt-repository ppa:certbot\/certbot $ sudo apt update $ sudo apt install certbot python-certbot-apache \uc5d0\ub7ec\uc2dc sudo apt install [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[31,49],"tags":[186,304],"class_list":["post-2427","post","type-post","status-publish","format-standard","hentry","category-31","category-unix","tag-apache","tag--ssl-"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2427"}],"version-history":[{"count":1,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2427\/revisions"}],"predecessor-version":[{"id":2428,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/2427\/revisions\/2428"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2427"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}