You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2018/11/01 13:52:55 UTC

[GitHub] craigmj opened a new issue #1806: mod_pagespeed behind https terminating proxy ignores X-Forwarded-Proto header

craigmj opened a new issue #1806: mod_pagespeed behind https terminating proxy ignores X-Forwarded-Proto header
URL: https://github.com/apache/incubator-pagespeed-mod/issues/1806
 
 
   I'm running HAProxy, forwarding to Apache running mod_pagespeed. HAProxy terminates the https connection, so I make a regular http connection to Apache, passing a `Http-X-Forwarded-Proto: https` and `X-Forwarded-Proto: https` headers with the proxy request.
   However, mod_pagespeed rewrites my css where I use a relative URL:
       `background-image: url(/test.png);`
   becomes
       `background-image: url(http://test.com/test.png);`
   Is it possible for mod_pagespeed to respect the `X-Forwarded-Proto` header and use `https` instead, or can I manage this in some other way?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services