【发布时间】:2013-09-28 00:05:02
【问题描述】:
我正在尝试在 Websphere LP server.xml 文件中映射我的服务器公共 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>
感谢任何帮助。
【问题讨论】:
-
“外面”是什么意思?另一台机器或另一个网络?您可以从同一台机器“通过 IP”访问您的服务器吗?
-
来自另一个网络....我无法通过从服务器机器提供我的服务器 ip 来访问我的服务器.....但是如果我提供 localhost 我可以访问...
-
请查看更新后的帖子,在我制作的 Server.xml 文件中
-
您的主机是否从外部机器/网络“可见”?您是否有任何防火墙阻止了端口 8007?你得到什么样的连接错误?
标签: websphere websphere-liberty