This post is mainly about configuring secured web server. Certificates generation related will be discussed in future. There's a package required to be installed, mod_ssl. yum install -y mod_ssl After installation, httpd needs to be restarted, and firewall rule should be updated, if it's meant to be accessible by other machines. systemctl restart httpd firewall-cmd --permanent --add-service=https firewall-cmd --reload When you try to access, you'll get this. You can proceed by Add Exception to view the page. If I try to access https://test.com (based on the existing setup continue from yesterday virtual web server , I'll get this. Why? This is because test.com is point to the same IP, and this URL is only set to listen to port 80, not port 443. When a match is not found, it will always refer back to the DocumentRoot in /etc/httpd/conf/httpd.conf. If additional setting as below is setup, it will point to the "actual" test.com content ...
Previously known as jcrys26's kdb. A learning dump and sharing place.