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

I have 2 aplications, each one running on unicorn.
I'd like to use nginx as a front end for each of those application.
For each nginx / unicorn pair I would then use a dedicated unix socket.
To do so, do I need to have to instance of nginx or can I use 2 virtual hosts ?

share|improve this question
1  
no way a windows admin could survive running an app called unicorn. –  Jim B Jun 1 '11 at 11:31

1 Answer 1

up vote 3 down vote accepted

You don't need multiple nginx instances, you could specify multiple proxy_pass with different unix sockets or defined multiple upstream sections.

share|improve this answer
    
I went with several upstream sections. Thanks. –  Luc Jun 1 '11 at 21:34

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.