Welcome! Log In Create A New Profile

Advanced

Re: 502 Bad Gateway- Nginx and thin

Francis Daly
March 18, 2013 04:26PM
On Mon, Mar 18, 2013 at 08:53:10PM +0100, Yunior Miguel A. wrote:

Hi there,

I see that I was wrong in assuming how thin works.

> thin configuration:

> servers: 1
> socket: /tmp/thin.sock

It looks like the *actual* file name used for the socket can add a
".integer" before the final "." in the configured socket file name,
with the integer going from 0 up to one below the number of servers.

So this bit:

> ngin configuration:
>
> upstream thin_cluster {
> server unix:/tmp/thin.0.sock;
> # server unix:/tmp/thin.1.sock;
> # server unix:/tmp/thin.2.sock;
> }

is correct, despite looking odd to my non-thin eyes.

It's good that you found a configuration that works for you.

From the initial error message reported, I can only assume that thin
wasn't running in that mode at the time you tested.

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: 173
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