【问题标题】:How to use Apache as a proxy for JBOSS AS?如何使用 Apache 作为 JBOSS AS 的代理?
【发布时间】:2010-07-29 16:51:37
【问题描述】:

我正在运行 Apache 并为 PHP 提供服务,但我还想为我的其他 Web 应用程序运行 JBOSS。 JBOSS 在 8080 端口上运行,而 Apache 在 80 端口上运行。如果有对 URL example.com 的请求,我希望 Apache 处理它,因为它是 PHP 后端,但对于 URL example2.com,我希望 Apache 转发请求到端口 8080 由 JBOSS AS 处理。

感谢您按照我描述的方式配置 Apache 的任何帮助。

【问题讨论】:

    标签: apache jboss proxy apache2


    【解决方案1】:

    您需要使用 Apache 代理模块:http://httpd.apache.org/docs/1.3/mod/mod_proxy.html

    您的代理配置将类似于:

     ProxyRequests Off
    
     ProxyPass /foo http://foo.example.com:8080/foo
    

    【讨论】:

      猜你喜欢
      • 2012-08-05
      • 1970-01-01
      • 2012-04-08
      • 2013-04-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多