Skip to Content

502 on login with nginx

Getting 502 bad gateway error?

1. Add the following in nginx.conf:

      proxy_buffer_size 128k;
      proxy_buffers 4 256k;
      proxy_busy_buffers_size 256k;

2. Add the following in the \.php$ section:

    fastcgi_buffer_size 128k;
    fastcgi_buffers 4 256k;
    fastcgi_busy_buffers_size 256k;

3. Restart nginx.