[英]Jboss to Apache forwarding
JBoss Enterprise Application Platform 6.1 on Linux Enterprise Redhat Linux Enterprise Redhat上的JBoss Enterprise Application Platform 6.1
I have seen several examples on how to have Apache forward requests to JBoss. 我已经看到了几个有关如何使Apache将请求转发到JBoss的示例。 I am looking to have a JBoss server listening on port 80 forward cgi calls to an Apache server . 我希望有一个JBoss服务器在端口80上侦听,将cgi调用转发到Apache服务器 。 Can JBoss be configured to listen at port 80 and forward all requests containing "cgi-bin" to port 8080 where Apache server is listening? 是否可以将JBoss配置为侦听端口80并将所有包含“ cgi-bin”的请求转发到Apache服务器正在侦听的端口8080?
The need to do this arises from 这样做的需要来自于
Despite JBoss handling the 99% of calls, the better architecture is to have Apache in front of JBoss. 尽管JBoss处理了99%的呼叫,但更好的体系结构是将Apache置于JBoss的前面。
You would have Apache serve port 80 and forward to JBoss via mod_cluster or mod_jk. 您将让Apache服务端口80并通过mod_cluster或mod_jk转发到JBoss。 This will allow you to control your content via Apache. 这将允许您通过Apache控制您的内容。 You should serve your static content directly from Apache as well. 您也应该直接从Apache提供静态内容。
Additionally with this architecture, you can cluster your environment and load balance across multiple servers. 此外,借助此体系结构,您可以在多个服务器之间集群环境并实现负载平衡。 This gives you higher fault tolerance (session replication, failover), handle more load, and helps you avoid server outages. 这样可以为您提供更高的容错能力(会话复制,故障转移),处理更多负载并帮助您避免服务器中断。
mod_cluster is recommended for EAP 6, but mod_jk works just fine too. 对于EAP 6,建议使用mod_cluster,但mod_jk也可以正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.