I followed your video on this setup and I have several sites working but I have one site I’m trying to reverse proxy and I’m getting a weird error that I don’t understand. The backend is a zimbra collaboration server community edtion self-hosted. It has an SSL Let’s Encrypt cert on it and everything is working via another of my public IPs and a different hostname. Now I’m trying to set it up through haproxy with a new hostname (which is pointed to my proxy public IP) and I’m getting “too many redirects” currently - this is different than what I had yesterday. Yesterday I was getting something about http vs https.
So I have the frontend set up to accept connections on port 443 and this ACL I have it on host matches and I put in my new hostname - let’s call it mail.example.com. (the working one on the other public ip is zimbra.example.com).
I have it set to use the backend called mail which I have set up as: address+port on port 443 and I have the encrypt(SSL) box checked.
My mail server is set up to automatically redirect port 80 to port 443 and that is an internal zimbra setting which I can turn off (and I tried it). I also have haproxy set up with a port 80 redirect rule. Thing is when I am trying to access it I’m going directly to the https url which in theory shouldn’t be redirecting at all and I am getting that too many redirects.
Zimbra also has a proxy built in and port 443 reverses to 8443 internally. I can access the web client internally on port 8443 so I also tried that in haproxy - still didn’t work. (too many redirects)
I did your openssl test in the troubleshooting video an I am getting served up the let’s encrypt certificate.
I am thinking it has something to do with Zimbra’s own proxy but I’m not sure on that.
Any ideas would be appreciated!
Thanks,
Rich