0

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!

  • 1
    Could you provide the nginx config here so we don't have to go search the unicorn site for it? – Martin Fjordvald Nov 10 '10 at 11:50
  • @Martin Fjordvald [saved you a search](http://unicorn.bogomips.org/examples/nginx.conf) – dbenhur Mar 14 '12 at 03:41
  • Indeed. A year and some later, but appreciated none the less. Regardless, some modification must have taken place for the question to make any sense at all. Otherwise he's asking not how to fix a problem but rather for someone to do his work for him so he doesn't need to understand the software he uses. – Martin Fjordvald Mar 14 '12 at 21:52

1 Answers1

1

Your upstream definitions must live outside of http {} or server {} definitions.

Kura
  • 223
  • 2
  • 7
  • and you use your upstream in your `server` definition, like `proxy_pass http://my_upstream` – Marcel Apr 02 '13 at 23:49