How to manage multiple sites with nginx / passenger?

I have different websites / applications built using rails that have different domain names. The fact is that I want to serve them from a server with Nginx / passenger. I tried some methods, but I can not get them to work, basically, I have very little information about this.

So, I can serve different websites / applications on different ports. But how can I make people see the “AAA” application if they come from aaa.com and see the “BBB” application if they come from bbb.com?

+5
source share
1 answer

The Phusion Passenger documentation contains an excerpt from this section, section 3.2: http://www.modrails.com/documentation/Users%20guide%20Nginx.html

Basically, you can configure virtual hosts that point to different applications on the same web server / application server.

You can also overwrite or forward only through the nginx configuration if the above does not work.

-3
source

All Articles