单个IP上的多个Rails应用程序(nginx +乘客) [英] Multiple rails apps on single IP (nginx + passenger)

查看:119
本文介绍了单个IP上的多个Rails应用程序(nginx +乘客)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找在一台服务器上提供多个Rails应用程序的方法.我上传了其中一个应用程序,并且运行正常.但是,一旦我为新应用程序创建了nginx配置,它就会崩溃. 我找不到适合的指南.如果您有任何建议,请分享.

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.

推荐答案

它肯定可以帮助您进行反向代理并提供多个应用程序:

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

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

这篇关于单个IP上的多个Rails应用程序(nginx +乘客)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆