Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple subdomains with SSL under IIS [closed]

Tags:

I currently need to have 2 subdomains under the same domain under SSL.
Both subdomains (www and affiliate) are on the same IIS server, under the same IP, and each one has specified a host header value (www.mydomain.com and affiliate.mydomain.com)

The first subdomain (www), which is the default, works great, with and without SSL.
The second subdomain works perfect under HTTP.

The problem is that I just purchased and installed the SSL certificate for the affiliate subdomain, and when you go to https://affiliate.mydomain.com, you get redirected to http://www.mydomain.com

I'm guessing the problem lies in the fact that I can't specify a host header value for SSL? (the dialog where I normally set the host header value doesn't have that option in the bottom part, dedicated to SSL).

What can I do about this? Should I have each subdomain in a separate IP? Is this not doable at all?

Thanks! Daniel

like image 327
Daniel Magliola Avatar asked May 27 '09 17:05

Daniel Magliola


People also ask

Do you need SSL Certificate for every subdomain?

So, securing every subdomain is imperative. But the good news is, you don't have to buy separate SSL certificates for all your registered subdomains. A single wildcard certificate can secure your primary domain and all your first-level subdomains.

Does an SSL certificate cover subdomains?

SSL certificates can secure main domains, subdomains, and multi-level domains.

Does a wildcard SSL cover all subdomains?

A wildcard SSL certificate encrypts unlimited subdomains on the same level.

Can you have 2 subdomains?

Each domain name can have up to 500 subdomains. You can also add multiple levels of subdomains, such as info.blog.yoursite.com. A subdomain can be up to 255 characters long, but if you have multiple levels in your subdomain, each level can only be 63 characters long.


1 Answers

"I'm guessing the problem lies in the fact that I can't specify a host header value for SSL"

You guessed right. You will need two IP addresses.

like image 166
Greg Dean Avatar answered Oct 11 '22 02:10

Greg Dean