I have an IIS web server behind a ELB. The web server uses security cookie to keep user signed in during the session. I have CloudFront for the purpose of redirecting HTTP to HTTPS.
If I directly access the ELB using its own DNS name, everything works fine. But if I access the CloudFront using "www.eyecloud.net.au", after I sign in, it keeps bouncing me back to the login page.
It is my first time using CloudFront. What went wrong?
Configure CloudFront to forward cookies to your origin server. You may want to use a whitelist of cookies to forward.
Also, using CloudFront just to do http to https forwarding seems excessive. Surely IIS can do that trivial task. This page says it can.