27.9 Configuring Apache for HTTPS
By default, the Apache server does not include the necessary module to implement a secure HTTPS web site. The first step, therefore, is to install the Apache mod_ssl module on the server system as follows:
# dnf install mod_ssl
Restart httpd after the installation completes to load the new module into the Apache server:
# systemctl restart httpd
Check that the module has loaded into the server using the following command:
# apachectl -M | grep ssl_module
ssl_module (shared)
Assuming that the module is installed, the next step is to generate an SSL certificate for the web site.