gpt4 book ai didi

websphere - IBM Websphere 自由配置文件 :How to map Public IP Address in Websphere

转载 作者:行者123 更新时间:2023-12-02 04:50:26 30 4
gpt4 key购买 nike

我试图在 Websphere LP server.xml 文件中映射我的服务器公共(public) IP 地址,但是当我尝试从外部访问它时,出现连接错误。我尝试给 host="localhost"并尝试从服务器本身访问,它工作正常。

我需要在 Websphere LP 中配置什么才能从外部访问它吗?

Server.xml文件

<server description="new server">

<!-- Enable features -->
<featureManager>
<feature>jsp-2.2</feature>
<feature>localConnector-1.0</feature>
</featureManager>

<httpEndpoint host="*" httpPort="8007" httpsPort="9443" id="defaultHttpEndpoint"/>



<applicationMonitor updateTrigger="mbean"/>


<library id="worklight-6.0.0">
<fileset dir="C:\IBM\Liberty\usr\shared\resources" includes="worklight-jee-library-6.0.0.jar"/>
</library>

<library id="apps-common">
<fileset dir="C:\IBM\Liberty\usr\shared\resources" includes="org.hsqldb.hsqldb_2.2.5.jar"/>
</library>

<application context-root="/DemoApp" id="DemoApplication" location="DemoApplication.war" name="DemoApplication" type="war">
<classloader commonLibraryRef="worklight-6.0.0,apps-common"/>
</application>
</server>

感谢任何帮助。

最佳答案

根据 httpEndpoint 配置元素的信息中心文档,此处:http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.wlp.doc/autodita/rwlp_metatype_4ic.html?resultof=%22%68%74%74%70%65%6e%64%70%6f%69%6e%74%22%20#mtFile121

* 的主机名将绑定(bind)到所有可用的网络接口(interface) - 您不需要在 Liberty 方面做任何额外的事情,我相信这可以回答您的问题。

将主机名设置为“localhost”将意味着只能从您的机器访问 http 端点。

使用提供的配置(* 的主机名),这应该可以远程工作 - 所以这很可能是防火墙问题。

您可以检查/servers/yourServer/logs/messages.log 文件以验证您的端点绑定(bind)到哪些接口(interface) - 查找形式为

的消息

WWKO0219I: TCP Channel defaultHttpEndpoint has been started and is now listening for requests on host localhost (IPv4: 127.0.0.1) port 9080.

关于websphere - IBM Websphere 自由配置文件 :How to map Public IP Address in Websphere,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18953391/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com