My setup is as follows:
User goes to subdomain.mainsite.org.uk.example
The site I want to be visible is www.site2.example
, however they still have to see subdomain.mainsite.org.uk.example
in the URL address bar.
I have set up a DNS mask with forwarding, so now accessing subdomain.mainsite.org.uk.example
will keep this as the URL, but show the content from www.site2.example
as requested.
However, I only have a certificate valid for www.site2.example
, causing the SSL certificate to be invalid.
How do I go about setting this up so the site is secure? I've tried searching online endlessly but can't find any resources that I fully understand (I'm pretty new to SSL stuff).