solve nginx error! signin-oidc 502 bad gateway dotnet core and identity server


sudo vi /etc/nginx/nginx.conf

and add

http{...proxy_buffer_size   128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
large_client_header_buffers 4 16k;

then in

sudo vi /etc/nginx/conf.d/default.conf


location /{
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;


Written by

Web Developer / #Palestine Follow me on

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store