Hello:
I had my domain name in DNS configured with a CNAME record pointing to the load balancer, configured to accept both https and http requests and forwarding them to the instance behind (only accepting http). Everything was working fine.
For other reasons, I had to configure the domain name in the DNS with a A record pointing to my new wordpress hosting server, where I will host my future website. So in this new hosting server, I can't use a A record to point to the load balancer. All I can do is to redirect the traffic from the hosting server to the old setup, so I redirect all traffic to the loadbalancer address:
xxxx-loadbalancer-xxxxxxxxx.us-west-2.elb.amazonaws.com
However, it now only works with http and if I try https, I get the typical Privacy Error because the browser detects that the domain SSL certificate does not match the domain requested (load balancer url). In fact, if I call above url from the browser, I get the privacy error....
My goal is to have this setup in the future:
https://mydomain.com (wordpress site from hosting server)
https://mudomain.com/myapp (running in AWS instance behind a load balancer).
How can I solve this https error? Is there a way to configure this?
Thanks