Forum Discussion
Help with upstream prematurely closed!
- Nov 15, 2022
I just solved the problem, the server block was redirecting to ssl, but when i call the upstream i was not doing with https!
To solve i just change
proxy_pass http://dotnet;
to
proxy_pass https://dotnet;
and now everything works fine.
I hope this could help more ppl because i lost so much time in this...
Hi standby,
your NIGNX config appears to be valid syntax. What error message to you get?
Do the ssl_certificate and ssl_certificate_key exist in the location you specified?
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/nginx/cert.pem;
ssl_certificate_key /etc/nginx/cert.key;
What outpout do you get when you run?
nginx -t
Did you try to run tcpdump on the server to check who is closing the connection? NGINX? Or your upstream server?
KR
Daniel
- AshudaNov 15, 2022Altostratus
Hi Daniel_Wolf
I am also facing an issue with similar criteria. Can you please guide and help me on this ?
https://community.f5.com/t5/technical-forum/nginx-502-bad-gateway/m-p/304386#M263319
Thanks
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com