New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Help with HAProxy and SSL
agoldenberg
Member, Host Rep
in Help
ok so I have 2 web servers both running on SSL and Non-SSL
srv1.domain.com
srv2.domain.com
I also have HAProxy running on proxy.domain.com
how do I get it so that when traffic hits http://proxy.domain.com it goes to port 80 and https://proxy.domain.com goes to port 443 on the nodes?
I've tried all the tutorials I can find but not one of them works.
Comments
Hey,
Have you made sure that HAProxy is listening on both ports 80 and 443 (HTTP and HTTPS respectively) and each uses the backend "application-backend" as the default.
Config file should be like this,
global
defaults
frontend http-in
frontend https-in
backend application-backend
Of course you need to fill in the blanks / edit it where i've said
@Shivam I believe so. My config is below.
Right now http://proxy.domain.com is working fine, but https I get a bad gateway error.
@Shivam got it working!
If i helped in someway, glad you got to it at the end Let me know if you need additional help