Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Quản trị Webserver Apache, Php, SSL (http://quantrinet.com/forum/forumdisplay.php?f=104)
-   -   Hướng dẫn cài đặt SSL cho domain trong Apache (httpd) (http://quantrinet.com/forum/showthread.php?t=10306)

hoctinhoc 28-12-2021 11:59 AM

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/


Bây giờ là 12:29 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.