Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm working with a domain www.black-girl.co on AWS.

AWS Configuration:

  • 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?

thx

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.