Mobile app version of vmapp.org
Login or Join
Samaraweera270

: Does manipulation of a sub-doman to a different domain name cause any issues with an SSL wildcard? For example, if I have a subdomain of: https://foobar.somesite.com that is hosting the site

@Samaraweera270

Posted in: #Domains #Https #SecurityCertificate #Subdomain

For example, if I have a subdomain of:
foobar.somesite.com

that is hosting the site but I want to pass the actual domain of:
foobar.com

in the browser would this cause any issues when using a wildcard SSL certaficate on anything for:

*.somesite.com


When I research how to do it properly my understanding is I should pass a 301 redirect on foobar to somesite then use something like:

<VirtualHost *:80>
ServerName example.com
ServerAlias *.example.com
ProxyPassMatch ^/(*)$ a.example.com/ ...
...
</VirtualHost>


If there is another way to do this please let me know but I have to use a SSL on the sub-domain.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

1 Comments

Sorted by latest first Latest Oldest Best

 

@Courtney195

The SSL certificate for *.somesite.com will not match somesite.com so you will get SSL errors when you try to connect to your site if you use this certificate. You will need to get another certificate or be able to add somesite.com as a Subject Alternative Name of your certificate for *.somesite.com

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme