Application Load Balancer getting 502 bad gateway error with Windows Server 2022

0

My ALB was working correctly with a windows server 2012 EC2 instance. When I changed the target to Server 2022, it immediately started getting the 502 bad gateway error. The error comes back immediately. The health check works using HTTP. All HTTP traffic works as expected. When I introduce HTTPS traffic, that is when I get the 502 error. I have gone through all the troubleshooting steps I can find. It is related to server 2022 somehow, but I am not sure what to check next.

asked a month ago334 views
3 Answers
0

If you’re on the server locally. Does https://127.0.0.1 work?

If not you will need to setup an ssl cert.

If it does you’d need to check the ALB and EC2 security groups to allow https.

profile picture
EXPERT
answered a month ago
0

Thank you, Gary. I appreciate your help. The service (website) does work locally, and from the outside. It just does not work through the ALB. I have checked and re-checked the security groups numerous times. The same policy that allows http (80) also allows https (443).
I need to make one correction to my original post. The EC2 instance is Windows Server 2022, if that makes a difference.

answered a month ago
0

I have been able to confirm that the ALB is getting a TCP RST from the windows 2022 server for HTTPS requests. I just don't know why. The troubleshooting articles just says, " load balancer can't establish a TCP 3-way handshake with the target".

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions