First time here but have used help from here a lot.
I managed to find some answers from this thread Cloudfront and EC2
But as it is mentioned in answer, this issue is happening for me
“Be sure, when you connect through CloudFront, that the server doesn't redirect you back to the EC2 hostname or IP (the address bar in the browser will change, if it does, and you'll want to fix your web server's config if that happens).”
So for this do I need to change anything on httpd.conf? Or ec2’s firewall? I am using amazon AMI with LAMP
Thanks Pramit