View Single Post
Tuổi 28-12-2021, 11:59 AM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Hướng dẫn cài đặt SSL cho domain trong Apache (httpd)
Hướng dẫn cài đặt SSL cho domain trong Apache (httpd)


1. Vào /etc/apache2/site-enabled/ tạo 1 file thí dụ: quantrinet.com-ssl.conf


2. Thêm nội dung sau vào

<IfModule mod_ssl.c>
<VirtualHost *:443 *:443>
ServerAdmin info@quantrinet.com
ServerName quantrinet.com
ServerAlias www.quantrinet.com

DocumentRoot /var/www/quantrinet/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /robots.txt /var/www/quantrinet/robots.txt

<Directory "/var/www/quantrinet">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl
#Include /etc/letsencrypt/options-ssl-apache.conf
#SSLCertificateFile /etc/letsencrypt/live/icsc.vn/fullchain.pem
#SSLCertificateKeyFile /etc/letsencrypt/live/icsc.vn/privkey.pem
SSLEngine on
SSLCertificateFile /etc/ssl/tectonicsgroup.pem
SSLCertificateKeyFile /etc/ssl/private.pem
SSLCertificateChainFile /etc/ssl/Chain_RootCA_Bundle.crt
</VirtualHost>
</IfModule>

Tham khảo: https://www.ssls.com/knowledgebase/h...ate-on-apache/
  Trả lời ngay kèm theo trích dẫn này