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 ?
You don't need multiple nginx instances, you could specify multiple
proxy_pass
with different unix sockets or defined multipleupstream
sections.