====== Apache 설정 HTTPS ====== [[FreeBSD:Apache|Apache 2.4 설정 HTTP]]와 [[FreeBSD:py-certbot|py-certbot 1.10 설치]]를 마쳤으면, 이제 /usr/local/etc/apache24/httpd.conf 에 보안연결이 가능한 가상 서버 호스트를 설정할 차례다. ##### # default setting for https; used by *.domain ServerAdmin webmaster@my.domain DocumentRoot "/usr/local/www/apache24/data" ErrorLog "/var/log/httpd-error.log" CustomLog "/var/log/httpd-access.log" combined SSLEngine On SSLCertificateFile "/usr/local/etc/letsencrypt/live/my.domain/cert.pem" SSLCertificateKeyFile "/usr/local/etc/letsencrypt/live/my.domain/privkey.pem" SSLCertificateChainFile "/usr/local/etc/letsencrypt/live/my.domain/fullchain.pem" Options Indexes FollowSymLinks AllowOverride None Require all granted Alias /icons/ "/usr/local/www/apache24/icons/" AllowOverride None Require all granted 'apachectl restart' 해서 아파지 서버를 재기동한다. 웹브라우저에서 %%https://my.domain%%이 접속되면 성공한 것이다.