I have a website hosted on *.mydomain.com
, my Apache web server in conjunction with PHP will return/echo some plain text based on the subdomain provided. *.mydomain.com
is secured with a wildcard SSL certificate.
I need to allow users to redirect requests from their own domain to my domain, for example: demo.theirdomain.com
to demo.mydomain.com
I've accomplished this with HTTP using CNAME records, however I've read that this is not ideal. And I need my website to be served over HTTPS. When I try and connect to the site on https://demo.theirdomain.com
over HTTPS I will receive a certificate mismatch error.
What is the best way to allow other subdomains to redirect their requests to my domain securely? NOTE: I do NOT want users to create their own certificates.