Author: Steven Neiland

Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

Step 4: Configure the SSL site

A SSL enabled site is seperate from the non ssl version. Even though they may have the same codebase they are seperate entities as far a as Apache is concerned. For this reason you will have to create a new vhost for the SSL site, where you replace the port 80 with 443.

The SSL site will have all the same settings as the non-ssl site with the following additions

#non ssl version of site
<VirtualHost mysite_ipaddress:80>
//configuration settings

#ssl version of site
<VirtualHost mysite_ipaddress:443>
//configuration settings
SSLEngine on
SSLCertificateFile /path/to/mysite.crt
SSLCertificateKeyFile /path/to/mysite.key
SSLCertificateChainFile /path/to/DigiCertCA.crt

Step 5: Test

At this stage your ssl cert should be installed correctly. To test restart apache then enter the address https://your_site_url into a web browser (note the s at the end of http). You should see your site as normal but with SSL enabled.

1 2 3 4

What Do You Think?

Reader Comments

NS's Gravatar
Wednesday, November 7, 2012 at 3:40:12 AM EST

Thanks for this, had to put the IIS cert on the apache reverse proxy...followed your steps, perfect.
Thanks a lot.

Carlo Idini's Gravatar
Carlo Idini
Monday, February 3, 2014 at 11:53:26 AM EST

Thank you!
It has worked perfectly for me.
I was looking for a solution from hours,
very crear and useful!

Post a Comment

Comment Etiquette:

  • Please keep comments on-topic.
  • Please do not post unrelated questions or large chunks of code.
  • Please do not engage in flaming/abusive behaviour.
  • Comments that contain or appear to be advertisments, will not be published.
  • Comments that appear to be created for the purpose of linkbuilding to commercial sites will be removed.

We are all adults here so play nice.


Archives Blog Listing

Tag Listing

Learn CF In A Week


Fork me on GitHub