For example, if I have a subdomain of:


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


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


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 ^/(*)$ http://a.example.com/$1

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


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.