1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

502 Bad Gateway - nginx

Discussion in 'Plesk 11.x for Linux' started by Mr.ADH2, Dec 7, 2012.

  1. Mr.ADH2

    Mr.ADH2 New Pleskian

    10
    35%
    Joined:
    Dec 7, 2012
    Messages:
    5
    Likes Received:
    0
    I am randomly receiving 502 Bad Gateway error pages - I can reproduce this issue by modifying hosting plans in plesk 11 and in the same time refreshing a page for a minute or two. When I get the 502 error page all I have to do is refresh the browser and the page refreshes properly.
    i am using centos 6

    this it from todays log (/var/log/nginx/error.log):

    this is the nginx config (/etc/nginx/nginx.conf)

    fastcgi config file (/etc/nginx/fastcgi.conf):

    fastcgi parameters config (/etc/nginx/fastcgi_params):

    alsow i'm getting this on a shared hosting server, on one of the domains:
    why is this appearing and what troubles may it cause?

    what can i do to get this errors fixed?
    thank you!
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
  3. Mr.ADH2

    Mr.ADH2 New Pleskian

    10
    35%
    Joined:
    Dec 7, 2012
    Messages:
    5
    Likes Received:
    0
    ok, but isn't this a solution just for the last error?
    do you have something for this one too?
     
  4. Mr.ADH2

    Mr.ADH2 New Pleskian

    10
    35%
    Joined:
    Dec 7, 2012
    Messages:
    5
    Likes Received:
    0
    is there any solution for the 502 error ?
     
  5. aashua

    aashua Guest

    0
     
    Turn off Ngix from Service management

    Turn off Ngix from Service management and then see result.
    Hope this helps.
    Thanks / Kbs
     
  6. Mr.ADH2

    Mr.ADH2 New Pleskian

    10
    35%
    Joined:
    Dec 7, 2012
    Messages:
    5
    Likes Received:
    0
    if i do that, it will kill the apache because of too many requests.
     
    Last edited: Feb 12, 2013
  7. aashua

    aashua Guest

    0
     
    after that just restart apache that what I did for my server with 2k domains.


    after that just restart apache that what I did for my server with 2k domains.
     
  8. Mr.ADH2

    Mr.ADH2 New Pleskian

    10
    35%
    Joined:
    Dec 7, 2012
    Messages:
    5
    Likes Received:
    0
    i can't do that because my clients will "kill" me :))
    but thanks for the suggestion.
     
  9. aashua

    aashua Guest

    0
     
    If you need so you can do it in off time.
    We also the same in peak hours.

    We are offering server support on your own server.
     
Loading...