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.

已提問 2 個月前檢視次數 359 次
3 個答案
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
專家
已回答 2 個月前
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.

已回答 2 個月前
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".

已回答 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南