1. 적용 환경 Ubuntu 16.04.3, Apache 2.4.18에 SSL(LetsEncrypt) 적용 2. Install sudo apt-get update sudo apt-get install software-properties-common sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install python-certbot-apache 3. Make & Apply : 아래 명령 중 하나만 실행 sudo certbot –apache sudo certbot –authenticator webroot –installer apache sudo certbot –authenticator webroot –webroot-path [Document […]
Category: Apache
Forwarding
1. index.html 추가 <html> <meta http-equiv=”refresh” content=”0; url=’http://www.forwarding.com'” /> </html> 2. Apache RewriteRule vi /etc/httpd/conf/httpd.conf <VirtualHost *:80> RewriteEngine On RewriteRule / www.forwarding.com </VirtualHost> 3. Apache Redirect vi /etc/httpd/conf/httpd.conf <VirtualHost *:80> ServerName www.original.com Redirect / www.forwarding.com </VirtualHost>