메뉴 건너뛰기

Dev tips

aws에서 httpd에 ssl 추가하기 (물론 aws가 아닌 다른데서도 동일함)

 

1. ~$ sudo yum install mod_ssl (aws에 mod_ssl 설치)

2. ~$ sudo vi /etc/httpd/conf/httpd.conf (/etc/httpd/conf/httpd.conf 혹은 /etc/httpd/conf.d/vhost.conf에서 추가)

<IfModule mod_ssl.c>
  <VirtualHost *:443>
    DocumentRoot "/var/www/taknim"
    ServerName www.taknim.com
    ServerAlias www.taknim.com
    ErrorLog logs/ssl_www-error_log
    CustomLog logs/ssl_www-access_log common
   <Directory "/var/www/taknim">
      AllowOverride All
   </Directory>
    SSLEngine on
    SSLCertificateFile    /var/ssl/_wildcard_taknim_com.crt
    SSLCertificateKeyFile /var/ssl/_wildcard_taknim_com.key
  </VirtualHost>
</IfModule>