How to Setup Multiple SSL (HTTPS) on One Server (VPS or Dedicate Server)?


HTTPS is the trend and it becomes more and more popular. It is being used as a ranking signal by search engines (e.g. google or baidu).

To setup multiple SSL-enabled websites on one VPS/Dedicated Server, you would need 1 static IP(v4) address for each domain. And you would need to set up DNS records so that each domain points to different IPs (but different IPs point to the same server).

After that, following the instructions described in this post, you should be able to enable the SSL for each domains.

Please note that the www domain is treated the same as the root domain. That is, www.helloacm.com is equal to helloacm.com so most SSL certificates can be applied to both domains.

I was trying to setup the justyy.com domain and it works but not the www.justyy.com domain and the chrome browser reports: This server could not prove that it is www.justyy.com; its security certificate is from helloacm.com. This may be caused by a misconfiguration or an attacker intercepting your connection.

This would need to be corrected within the Apache conf.

after a few hours hacking… finally solved.
I need to add
ServerAlias www.justyy.com
after
ServerName justyy.com:443

so strange it picks up helloacm.com (another SSL on the VPS) if i don’t add ServerAlias for justyy.com

I guess it was looking at the default IP and getting the SSL from there as server alias did not exist.

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
362 words
Last Post: The Ultimate VPS from QuickHostUK
Next Post: How to Check CPU (Cores) on VPS/Dedicate Server?

The Permanent URL is: How to Setup Multiple SSL (HTTPS) on One Server (VPS or Dedicate Server)?

Leave a Reply