1. Modify the Apache configuration file httpd.conf
LoadModule Ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
Remove the # from the front.
2. In the httpd-ssl.conf file add
<virtualhost test.com:443>
DocumentRoot "Site Path"
ServerName test.com
Sslengine on
Sslcertificatefile D:\SSL_CERT\3JSW.COM\DOMAIN.CRT # # your certificate file
Sslcertificatekeyfile D:\ssl_cert\3jsw.com\domain.key # # your certificate file
Sslcertificatechainfile D:\SSL_CERT\3JSW.COM\CA.CRT # # your certificate file
<directory "Site Path" > # # if it appears 403 it could be here.
AllowOverride All
Order Deny,allow
Allow from all
</Directory>
</VirtualHost>
3. Apache Restart
4. It is possible that PHP will not be parsed, perhaps your Apache is reconfigured to parse PHP. For example/php-cgi.exe, this time needs to be added inside the httpd-ssl.conf file VirtualHost tag
Options FollowSymLinks execcgi
AddHandler fcgid-script. php
Fcgidwrapper "D:/hwsapachemaster/php/php56/php-cgi.exe". php
DirectoryIndex index.html index.htm index.php default.php index.jsp
Apache Configuration HTTPS