【问题标题】:Unable to send request via live server无法通过实时服务器发送请求
【发布时间】:2014-12-26 15:39:36
【问题描述】:

当我向http://localhost:8080/..发送请求时,它工作得很好

但是当我向http://10.68.5.39:8080/..发送请求时

我收到错误..

IP地址10.68.5.39在内网工作,8080端口开放

请看..

【问题讨论】:

标签: jboss server


【解决方案1】:

在standalone.xml 文件中尝试将别名从localhost 更改为您的IP 地址

<server name="default-server">
   <http-listener name="default" socket-binding="http"/>
       <host name="default-host" alias="localhost">
           <location name="/" handler="welcome-content"/>
           <filter-ref name="server-header"/>
           <filter-ref name="x-powered-by-header"/>
       </host>
</server>

它对我有用。

【讨论】:

    猜你喜欢
    • 2016-03-31
    • 2010-10-31
    • 1970-01-01
    • 2016-07-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-29
    • 1970-01-01
    相关资源
    最近更新 更多