How do I fix Nginx config to work with multiple hosts of Unicorn?

Posted by fred deAlmeida on Server Fault See other posts from Server Fault or by fred deAlmeida
Published on 2010-11-10T10:44:51Z Indexed on 2012/10/21 23:06 UTC
Read the original article Hit count: 222

Filed under:
|
|

I have no problem instantiating multiple instances of unicorn on different unix sockets and ports. Works fine if I do url:port.

My problem comes in correctly formatting nginx.conf to allow multipe upstream conditions. Whatever i do does not seem to work. One instance is fine works fine. Multiple gives me a ""upstream" directive is not allowed here error

I am using the base nginx sample from the unicorn site. and doubling up the upstream area with differing terms. each is part of the http set.

Any help would be amazing!

© Server Fault or respective owner

Related posts about nginx

Related posts about config