Multiple rails apps on single IP (nginx + passenge

2019-07-31 15:37发布

问题:

I'm looking for the way to serve multiple rails apps on one server. I uploaded one of the apps and it works just fine. But as soon as I create nginx configuration for a new app, it crashes first one. I can't find an appropriate guide for this. If you have any advice, please share.

回答1:

it can surely help you with reverse proxy as well as serving multiple apps:

https://gist.github.com/soheilhy/8b94347ff8336d971ad0