Keywords: Drupal - AWS - Technical issue - Other
I have a Drupal 7 on EC2 instance and I have pointed domain CNAME to Cloudfront DNS which has the ec2 as origin.
The site opens only when the Cloudfront behavior setting "Cache Based on Selected Request Headers" is set to "All" . So Cloudfront is not caching anything.
If I put "Whitelist" and select CloudFront-Forwarded-Proto , Host, Referrer or any combination of these the site does not work.
So basically Cloudfront is unable to cache. When the above settings are on I get 502 "too many redicts" etc errors.
I was thinking does Bitnami LAMP stack has some kind of Apache setting on default which prevents this Cloudfront to work ?
Also I have tried to do this with Elastic Load Balancer but with exactly same result. So SSL works, site works but onlyl when that setting is "All"
I am just wondering if anyone is using Bitnami Drupal stack behind Cloudfront?