Using the Appach 2.4. Version 10 versions are configured differently
1, first modify the httpd.conf file
Found in the Conf folder in the Appach installation directory
#LoadModule Socache_shmcb_module modules/mod_socache_shmcb.so
Remove the "#" number
#LoadModule Ssl_module modules/mod_ssl.so
Remove the "#" number
Save, upload to server
2. Modify the httpd-ssl.conf file
Appach installation directory Conf/extra folder found in
Specify the following content separately
Sslcertificatefile "/ALIDATA/SERVER/HTTPD/CONF/SERVER.CRT" (Web server certificate path)
Sslcertificatekeyfile "/alidata/server/httpd/conf/server.key" (the key file path generated when requesting a certificate)
Sslcertificatechainfile "/ALIDATA/SERVER/HTTPD/CONF/SERVER-CA.CRT" (Web server Intermediate certificate path)
Upload the above three files to the above location, then restart the Appach server to complete the initial deployment work
First stop
Apachectl-k stop
Then start Appach
Apachectl-k start
NETSTAT-TANP to see if there are 443 ports open
If you set the Vhost mode, you need to specify the <virtualhost domain name:443> node in the httpd-ssl.conf file and configure the relevant content under the change node
CentOS Configuration SSL Service