WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Bad gateway on Nginx (7 posts)

  1. RavanH
    Member
    Posted 2 years ago #

    After authorizing with WordPress.com, I get redirected back to the webserver and get this error:

    502 Bad Gateway

    It's an NGINX server.

    Refreshing the page will show the connection was successful but I'd like to be able to fix the error. Anyone seen this before and knows what can be done about it?

    Thanks :)

    http://wordpress.org/extend/plugins/jetpack/

  2. Pothi
    Member
    Posted 2 years ago #

    Anyone seen this before and knows what can be done about it?

    Yes, I have seen that before and adding the following two lines in nginx.conf file, inside the server block fixed it...

    fastcgi_buffers 16 16k;
    fastcgi_buffer_size 32k;
  3. RavanH
    Member
    Posted 2 years ago #

    Fantastic!

    And that seems to have actually solved another issue where the updating plugins page (or even core) would not come back with a "updated successfully" message while the process was executed successfully in the background.

    Thanks for sharing :)

  4. Pothi
    Member
    Posted 2 years ago #

    Glad to know it worked for you and solved other issue too. :)

  5. manovarus
    Member
    Posted 1 year ago #

    This helps to me

    proxy_buffers 8 32k;
    proxy_buffer_size 64k;
  6. Pothi
    Member
    Posted 1 year ago #

    @manovarus Thanks for sharing what worked for you. You are probably using Nginx as a reverse proxy to Apache. My solution works for a Nginx and php-fpm stack.

  7. manovarus
    Member
    Posted 1 year ago #

    Ok. Thank you

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic