Switch SSL to haproxy instead of Apache
-
I have been running my blog site with https for a little while. Switching was a bit painful, but I got through it and really did get everything running with ssl, including all URLs embedded in posts and comments.
Now I would like to terminate SSL on haproxy and use unencrypted connections to the back end. I’ve got good reasons for this, but they are not relevant to this question.
If I configure haproxy to talk to the back end server with https, everything’s fine … but if I try to switch to an unencrypted connection, then the blog site doesn’t work right — the self-referential URLs created for resources like javascript, css, xmlrpc.php, and other things are all using http. It appears that they aren’t even trying to load, which I think may be happening because I am setting the Strict-Transport-Security http header in the responses from haproxy.
For performance reasons, I would like to make all requests to the back end with http. How do I make all of the self-referential URLs within wordpress either use https or make them truly relative URLs that don’t include the protocol and site, just the URL path?
- The topic ‘Switch SSL to haproxy instead of Apache’ is closed to new replies.