I'm working with a domain www.black-girl.co on AWS.
Route53 configured so www.black-girl.co points to Cloudfront (can see this in DNS Routing).
black-girl.co is pointing to the Elastic Load Balancer (as can't point an APEX record to Cloudfront (if this has changed let me know)) and when this hits apache the virtualhost is using a .htacess to rewrite the URL it changes to www.black-girl.co (this is working).
In CloudFront I have setup a Distribution and added a CNAME for www.black-girl.co which is pointing at the Load Balancer and this is hitting Apache but going to the default web page. (which says forbidden at the moment).
It appears the name of the site isn't getting to apache correctly and the only piece I have added is Cloudfront (works fine without it).
Any ideas for what I should try?
Can CloudFront get the correct website content through an Elastic Load Balancer onto Apache which is running a large number of Websites? Can it get the correct virtualhost?