开发者

Serving multiple Rails apps from single domain

开发者 https://www.devze.com 2022-12-21 19:56 出处:网络
I have two Rails apps that I want to serve with Passenger from the same domain. I would like requests to come in to one app, and if that app is not able to handle the request, for the request to be 开

I have two Rails apps that I want to serve with Passenger from the same domain.

I would like requests to come in to one app, and if that app is not able to handle the request, for the request to be 开发者_Go百科passed to the the second app.

I know that I can use Passenger's RailsBaseURI option to deploy multiple apps to different sub URIs, but this doesn't give the behaviour I'm after.

Is there a standard way to achieve this?

Thanks in advance, etc etc.


I think you can use haproxy as a load balancer.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号