|
|||||||||
|
|||||||||
|
![]() |
|
Công Cụ | Xếp Bài | ![]() |
![]() |
#1 |
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/ |
![]() |
Công Cụ | |
Xếp Bài | |
|
|