I'm using a Cloudfront distribution as a proxy for my Heroku server. Why? for these purposes.
Anyway, my app has a force ssl rule on it. When I go to my cloudfront url, the origin being my heroku app url, i'm getting a 301 redirect to the origin, instead of serving as an alias.
Some stuff i did:
At first i had an error saying "request could not be satisfied"
, so I changed the origin protocol policy to HTTP Only.
Then, I had a redirect loop, so after researching I found out it was caused by the host header being passed in, so i removed forwarding headers.
Now i'm getting this 301 redirect.How can i stop it? What configurations should i look at?
Appreaciate any ideas. Happy to provide any additional information.