Welcome! Log In Create A New Profile

Advanced

Erro 502 Bad Gateway help

yair avendaño
July 02, 2016 02:24AM
Hi I'm setting up a nginx as a reverse proxy but to try to see a site with drupal locally that have shown me 502 Bad Gateway error.
this gets me in the logs.


016/07/02 00:51:57 [error] 18120#0: *61 upstream sent unsupported FastCGI protocol version: 72 while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:8080", host: " localhost"



I can not get him out of there I find that causes this error. the server operating system is a gentoo. I show my vhost


server {
listen 80;
server_name localhost;

access_log /var/log/nginx/localhost_access_log main;
error_log /var/log/nginx/localhost_error_log info;

root /var/www/site/prueva/www/;

location / {
index index.html index.htm index.php;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;

}

location ~ \.php$ {
# Test for non-existent scripts or throw a 404 error
# Without this line, nginx will blindly send any request ending in .php to php-fpm
try_files $uri =404;
include /etc/nginx/fastcgi.conf;
fastcgi_pass 127.0.0.1:8080; ## Make sure the socket corresponds with PHP-FPM conf file
}
}

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

Erro 502 Bad Gateway help

yair avendaño July 02, 2016 02:24AM

Re: Erro 502 Bad Gateway help

四弦 July 02, 2016 03:06AM

Re: Erro 502 Bad Gateway help

Francis Daly July 02, 2016 03:26AM

Re: Erro 502 Bad Gateway help

Yuriy Medvedev July 02, 2016 04:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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