【问题标题】:Apache ProxyPass to Jboss on other machineApache ProxyPass 到其他机器上的 Jboss
【发布时间】:2013-07-04 13:43:26
【问题描述】:

我在不同的机器上有 apache 服务器和 JBoss 服务器。我想将 mydomain.com 的流量重定向到 JBoss 192.168.1.100:8080。 .

下面是配置

NameVirtualHost *:80

<VirtualHost *:80>
ProxyRequests Off
ServerName mydomain.com
<Proxy *>
Order deny,allow
Allow from all

</Proxy>

ProxyPass / http://192.168.1.100:8080/  
ProxyPassReverse / http://192.168.1.100:8080/
ProxyPassReverseCookiePath / /

</VirtualHost>

当我访问域时,我得到“服务暂时不可用”。如果我在同一台机器上配置 jboss,我可以访问

请建议如何访问不同机器上的作业

【问题讨论】:

    标签: apache apache2 jboss5.x mod-proxy


    【解决方案1】:

    您可能需要允许 JBoss 绑定到 localhost 以外的其他地址。编辑您的standalone.xml 文件并在公共界面中如下

    <interfaces>
        <interface name="public">
            <any-address/>
        </interface>
    </interfaces>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-05-28
      • 2015-11-22
      • 1970-01-01
      • 2016-04-24
      • 2016-09-25
      • 2018-03-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多