Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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!

share|improve this question
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 –  dbenhur Mar 14 '12 at 3: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 Answer 1

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

share|improve this answer
    
and you use your upstream in your server definition, like proxy_pass http://my_upstream –  Marcel Apr 2 '13 at 23:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.