Welcome! Log In Create A New Profile

Advanced

add_header doesn't work when 50x

May 21, 2012 02:36AM
Hi everybody,

I manage a server farm with more than 30+ servers using nginx.

Sometimes I forgot to start php-fpm, that is I got 502 BAD GATEWAY.

I have "add_header Host $hostname;" in my nginx.conf.

But this only enable when return code is 200 OK, there is no "Host" Header in 502 BAD GATEWAY.

I cannot find which machine is wrong as soon as posible.

Is there any suggestion?

Thanks a lot.
Subject Author Posted

add_header doesn't work when 50x

neoesque May 21, 2012 02:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
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