Welcome! Log In Create A New Profile

Advanced

Re: 502 Bad Gateway- Nginx and thin

Francis Daly
March 18, 2013 01:16PM
On Mon, Mar 18, 2013 at 05:13:12PM +0100, Yunior Miguel A. wrote:

Hi there,

> I am put the same port and change server unix:/tmp/thin.sock;
>
> and the log is the same.

I'm not sure what exact configuration and log you are looking at in this
test, but if your nginx.conf says "unix:/tmp/thin.sock" and your nginx
error log says "connect() to unix:/tmp/thin.0.sock failed", then your
actually-running nginx is not using that nginx.conf.

Alternatively, if your nginx.conf says "unix:/tmp/thin.sock" and your
nginx error log says "connect() to unix:/tmp/thin.sock failed", then
that strongly suggests that your thin is not listening on that socket.

So either make sure that thin is doing what you expect, or make sure
that nginx is doing what you expect, depending on what your test showed.

f
--
Francis Daly francis@daoine.org

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

502 Bad Gateway- Nginx and thin

Yunior Miguel A. March 18, 2013 11:14AM

Re: 502 Bad Gateway- Nginx and thin

Maxim Dounin March 18, 2013 11:24AM

Re: 502 Bad Gateway- Nginx and thin

Francis Daly March 18, 2013 11:28AM

Re: 502 Bad Gateway- Nginx and thin

Yunior Miguel A. March 18, 2013 12:14PM

Re: 502 Bad Gateway- Nginx and thin

Francis Daly March 18, 2013 01:16PM

Re: 502 Bad Gateway- Nginx and thin

Yunior Miguel A. March 18, 2013 03:54PM

Re: 502 Bad Gateway- Nginx and thin

basti March 18, 2013 04:12PM

Re: 502 Bad Gateway- Nginx and thin

Francis Daly March 18, 2013 04:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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