3:2018-10-01 yc.ali3.tw

cd /usr/share/letsencrypt

[root@ali3 letsencrypt]# ./letsencrypt-auto --apache -d ali3.tw -d www.ali3.tw -d yc.ali3.tw

Expend

no redirect

modify httpd.conf delete append yc.ali3.tw letsencrypt

modify site_enable httpd and le-ssl conf

# Virtual host yc.ali3.tw
<VirtualHost 59.125.229.3:80>
        ServerAdmin service@ali3.tw
        DocumentRoot /var/www/web27
        ServerName yc.ali3.tw
Redirect 301 / https://yc.ali3.tw
</VirtualHost>
 

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerAdmin service@ali3.tw
        DocumentRoot /var/www/web27
        ServerName yc.ali3.tw
        ServerSignature email
        DirectoryIndex index.php index.html index.htm index.shtml
        ErrorLog logs/yc-ali3-error_log
        CustomLog logs/yc-ali3-access_log combined
        CustomLog /dev/null common
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/ali3.tw/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ali3.tw/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/ali3.tw/chain.pem
</VirtualHost>
</IfModule>
 

Tags