Hi Guys,
Just wondering if anyone has any ideas how I can get mod_pagespeed to rewrite resources in HTTPS only?
We've made a lot of system changes recently and what I think is happening (not 100% sure), could be related to a problem with the x-forwarded-proto header because Cloudfront is the SSL termination point. Basically the Cloudfront CDN decrypts and forwards the request and correct x-forwarded-proto headers to an ELB (Elastic Load Balancer). The ELB will then natrually modify the headers because the connection was made on port 80 which means an "incorrect" proto header is being provided to Nginx. Nginx (pagespeed) sees it as an unsecured site and rewrites accordingly.
Now I have managed to get the rest of the system working (wordpress) by overriding some fastcgi headers but Nginx still is not writing resources correctly. Is there any way to fix this? any help is appreciated.
Shane :)