我试图在Websphere LP server.xml文件中映射我的服务器公共IP地址,但是当我尝试从外部访问它时,出现连接错误。我试图给主机=“本地主机”,并试图从服务器本身访问,它工作正常。IBM Websphere Liberty Profile:如何在Websphere中映射公有IP地址
有什么我需要在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访问我的服务器.....但如果我给本地主机我可以访问... – Cyber
请参阅更新的帖子,在Server.xml文件我使 –
Cyber