Welcome! Log In Create A New Profile

Advanced

Re: Nginx + fastCGI = 502 bad gateway

Edho Arief
August 03, 2011 05:04AM
On Wed, Aug 3, 2011 at 3:51 PM, dekar411 <nginx-forum@nginx.us> wrote:
> Greetings
>
> I'm trying to setup Nagios web interface to work with Nginx, but I'm
> showed a 502 Bad Gateway just after login.
>

according to your netstat output:

> unix  2      [ ACC ]     STREAM     LISTENING     3590     738/fcgiwrap
>      /var/run/fcgiwrap.socket

you should set fastcgi_pass to fcgiwrap socket path (3590 is "I-Node"
column, not listening port):

>
>    location ~ ^/cgi-bin/nagios3($|/.*) {
>        alias /usr/lib/cgi-bin/nagios3$1;
>
-        fastcgi_pass 127.0.0.1:49233;
+        fastcgi_pass unix:/var/run/fcgiwrap.socket;

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

Nginx + fastCGI = 502 bad gateway

dekar411 August 03, 2011 04:51AM

Re: Nginx + fastCGI = 502 bad gateway

Edho Arief August 03, 2011 05:04AM

Re: Nginx + fastCGI = 502 bad gateway

dekar411 August 03, 2011 10:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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