Welcome! Log In Create A New Profile

Advanced

terminate ssl on nginx and loadbalance with haproxy

Posted by wademac 
terminate ssl on nginx and loadbalance with haproxy
August 10, 2010 09:50AM
we have a Apache web server that was getting a ton of hits due to a marketing campaign that worked out very well... but they did not think of what would happen to the web server if it did... so in short I had to build a load balanced solution with HAPROXY which worked out well (over all) but one small detail it can not xforward the ip of the client to the Apache web servers over ssl.

so.. I have setup a test Load Balancer.

I have setup nginx to receive the ssl requests on port 443 and decrypt them and forward them on to port 8000 where HAPROXY is listening to send to 1 of the 3 Apache web servers on port 443.. but when I do I get the following error

Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.
Re: terminate ssl on nginx and loadbalance with haproxy
August 11, 2010 02:44PM
I have resolved the issue by running all traffic to port 80.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready