LL
Apache httpd : Configure SSL/TLS
[root@www ~]# dnf -y install mod_ssl
[root@www ~]# vi /etc/httpd/conf.d/ssl.conf
# line 43 : uncommentDocumentRoot "/var/www/html"
# line 44 : uncomment and specify hostnameServerName www.worldcm.net:443
# line 85 : change to the one got in [1]SSLCertificateFile /etc/letsencrypt/live/www.worldcm.net/cert.pem
# line 93 : change to the one got in [1]SSLCertificateKeyFile /etc/letsencrypt/live/www.worldcm.net/privkey.pem
# line 102 : change to the one got in [1]SSLCertificateChainFile /etc/letsencrypt/live/www.worldcm.net/chain.pem
[root@www ~]# systemctl restart httpd
[root@www ~]# vi /etc/httpd/conf.d/vhost.conf
<VirtualHost *:80> DocumentRoot /var/www/html ServerName www.worldcm.net RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]</VirtualHost>
[root@www ~]# systemctl reload httpd
[root@www ~]# firewall-cmd --add-service=httpssuccess[root@www ~]# firewall-cmd --runtime-to-permanent
LL