简体   繁体   English

OpenShift中的HAProxy配置

[英]HAProxy configuration in OpenShift

I am new to HAProxy as well as OpenShift. 我是HAProxy和OpenShift的新手。 Following is the setup I am trying to do - serve blog through Ghost(a NodeJS app), static website files through PHP cartridge(I assume this is the best way for serving static HTML/JS on OpenShift) and actual application. 以下是我要尝试的设置-通过Ghost(NodeJS应用程序)提供博客,通过PHP盒式磁带(我认为这是在OpenShift上提供静态HTML / JS的最佳方法)提供静态网站文件。 I would like to route requests to specific gear based on the URL. 我想根据URL将请求路由到特定的设备。

OpenShift上的HAProxy

I want to confirm if this is the correct way to set it up. 我想确认这是否是正确的设置方法。 Could you please give some pointers about the HAProxy configuration for this? 您能否为此提供一些有关HAProxy配置的指示?

我认为,与其在haproxy中做到这一点,不如为您的静态资产运行一个单独的设备,或者为静态资产使用Amazon S3或CloudFront,都是值得的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM