Recent Topics

1 Dec 06, 2018 09:08    

Anybody tried running b2evolution behind haproxy? With haproxy doing the SSL encryption?

So what this does is a client connect to the HAProxy server (443), the proxy server then connects to b2evolution via HTTP, and then encrypts the content and send to the client.

Have trouble setting this up because:

  1. I cannot use https:// as the base URL in _basic_config.php as I get a redirected error
  2. Changing the link to http:// in baseURL fixed the issue, but although the page is now served over HTTPS, all the links in the blog are http (including pictures, etc, and that makes the page insecure).

Anybody done something similiar to this? How to work around this issue? Thanks in advance.

2 Dec 08, 2018 00:06

If your proxy is switching from http to https, it should also be translating all URLs at the time it does SSL encryption. It makes no sense to me why it would not do that.

3 Dec 09, 2018 01:52

@fplanque wrote earlier:

If your proxy is switching from http to https, it should also be translating all URLs at the time it does SSL encryption. It makes no sense to me why it would not do that.


Probably a configuration error. Like you I think HAProxy should have a configuration setting somewhere to change all the http links in the pages to https before sending it back to the browser. Just can't seem to find a way to do this.

So hopefully there is somebody here who is running HAproxy in front of B2evolution + SSL offloading, can point me in the right direction.


Form is loading...