Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
no way a windows admin could survive running an app called unicorn. – Jim B Jun 1 '11 at 11:31
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


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.