close

如果有多個 domain name

找到『<VirtualHost _default_:443>
在這個設定的上方增加設定值『NameVirtualHost』  (同 httpd.conf)
如此一來,才可以讓Apache辨認domain name來區分站台

 

 

NameVirtualHost *:443
<VirtualHost _default_:443>

# yum install epel-release -y

 

# yum install mod_ssl

 

 

# yum install certbot -y
# certbot certonly --webroot -w /var/www/html -d www.mydomain.com  --email <YOUR_EMAIL_ADDRESS> --agree-tos
# vi /etc/httpd/conf.d/ssl.conf
SSLCertificateFile /etc/letsencrypt/live/www.mydomain.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.mydomain.com/privkey.pem
SSLCACertificateFile /etc/letsencrypt/live/www.mydomain.com/fullchain.pem
# systemctl restart httpd
#!/bin/sh
/usr/bin/certbot renew --quiet --agree-tos --post-hook "systemctl reload httpd"

 

 

更新cert 方式不太一樣了 , 待補完

arrow
arrow
    全站熱搜

    阿貴貴 發表在 痞客邦 留言(0) 人氣()