Welcome! Log In Create A New Profile

Advanced

Re: 502 Bad Gateway

Raphael Marot
March 26, 2012 08:02AM
Le 26/03/2012 13:45, mailing@securitylabs.it a écrit :
> Il 26/03/2012 13:41, Raphael Marot ha scritto:
>> Hi all,
>>
>> I have a simple setup with Nginx in front Apache, under debian wheezy
>> (nginx for static content, apache for php)
>> Since the last Nginx update (1.1.17-2 via apt-get), every night after
>> daily crons i have a 502 error (bad gateway) until i reload apache.
>> Everything was fine before.
>> I tried to reload apache after nginx in the logrotate daily task, but
>> without effect.
>> In my logs i just have :
>>
>> [error] 22332#0: *10804 connect() failed (111: Connection refused)
>> while connecting to upstream
>>
>> Where should i look at?
>>
> Look at Apache's logs. It seems that apache does not restart correctly
> after che log rotate, and a manual restart fix it. The error tells you
> that nginx can't communicate with apache.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Thanks!
Indeed I have an error in my apache log.
seg fault or similar nasty error detected in the parent process

It is definitely php related and has nothing to do with Nginx.
I think i uninstalled a php module which is still called in the php.ini,
and maybe this is the cause...


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

502 Bad Gateway

Raphael Marot March 26, 2012 07:42AM

Re: 502 Bad Gateway

fbhosted March 26, 2012 07:44AM

Re: 502 Bad Gateway

mailing@securitylabs.it March 26, 2012 07:46AM

Re: 502 Bad Gateway

Raphael Marot March 26, 2012 08:02AM

Re: 502 Bad Gateway

SolarWonk May 17, 2012 07:33PM

Re: 502 Bad Gateway

Maxim Dounin May 18, 2012 06:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 254
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready