I am trying to setup multiple Ruby on Rails apps on my local machine with Phusion Passenger and Nginx. Unfortunately I can't seem to find a good solution for doing this with a google search. Some solutions I've seen included creating a symlink but essentially what I would like to do is have a different nginx.conf per project and have Phusion Passenger load that file up from perhaps ~/Sites/project/config/nginx.conf in my Ruby on Rails app. Is this possible? If so, how can I achieve that? and If not, what other solutions are there that might point me in the right direction?
Thanks for your help!
==========
Possible Solution
==========
Using RVM I created a new gemset, I then installed the phusion passenger gem under that gemset and during the installation of nginx, I specified the nginx to be installed under ~/Sites/project/config/
This essentially created the following directories:
- project
- config
- conf
- sbin
- config
Inside of the project/config/conf exists the nginx.conf file which /project/config/sbin/nginx uses to create its own virtual host. Although I'm sure I can use my centralized nginx configuration at /opt/nginx , the difference is that this helps create a project that can be easily distributable to other devs who are working on the project as well. Any thoughts/concerns?