IHS 和 WAS 配置正常,但无法通过 WebServer 连接到应用程序
IHS and WAS configuration OK, but can't connect to application via WebServer
我已成功设置 IBH HTTP 服务器,生成插件,将其从 WAS 管理控制台传播到远程 Web 服务器,但仍然无法通过 Web 服务器连接到应用程序。
我已成功按照 IBM 手册中所述配置 HTTP 服务器的步骤 here。
WebServer 在 880 端口启动,请求时我可以从远程机器看到 IHS 的欢迎页面:http://ihs-ip@:880
请求:http://ihs-ip@:880/app_name 抛出 404 Not Found 消息,日志文件中没有错误。
IHS 机器上的防火墙和 SELinux 被禁用。
我尝试重新启动网络服务器、DMGR 和两个集群应用程序节点,但没有成功。
WebSphere AS 版本为:7.0.0.31 ND
如果需要,我可以 post 我的 httpd.conf 和插件-cfg.xml 内容。
有什么线索吗?
谢谢。
更新:
这是我的插件-cfg.xml 文件的内容(我还注意到我在 default_host 虚拟主机中没有 *.880 别名):
<?xml version="1.0" encoding="ISO-8859-1"?><!--HTTP server plugin config file for the webserver DmgrBrokerClusterCell.ws-005056878644.xxxxx.com-node.webServerBroker880 generated on 2015.02.06 at 01:00:02 AM CET-->
<Config ASDisableNagle="false" AcceptAllContent="false" AppServerPortPreference="HostHeader" ChunkedResponse="false" FIPSEnable="false" FailoverToNext="false" HTTPMaxHeaders="300" IISDisableFlushFlag="false" IISDisableNagle="false" IISPluginPriority="High" IgnoreDNSFailures="false" KillWebServerStartUpOnParseErr="false" MarkBusyDown="false" OS400ConvertQueryStringToJobCCSID="false" RefreshInterval="60" ResponseChunkSize="64" SSLConsolidate="true" TrustedProxyEnable="false" VHostMatchingCompat="false">
<Log LogLevel="Error" Name="/opt/IBM/HTTPServer/Plugins/logs/webServerBroker880/http_plugin.log"/>
<Property Name="ESIEnable" Value="true"/>
<Property Name="ESIMaxCacheSize" Value="1024"/>
<Property Name="ESIInvalidationMonitor" Value="false"/>
<Property Name="ESIEnableToPassCookies" Value="false"/>
<Property Name="ESICacheidFull" Value="false"/>
<Property Name="PluginInstallRoot" Value="/opt/IBM/HTTPServer/Plugins/"/>
<VirtualHostGroup Name="default_host">
<VirtualHost Name="*:9080"/>
<VirtualHost Name="*:80"/>
<VirtualHost Name="*:9443"/>
<VirtualHost Name="*:5060"/>
<VirtualHost Name="*:5061"/>
<VirtualHost Name="*:443"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:9080"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:80"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:9443"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:5060"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:5061"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:443"/>
<VirtualHost Name="*:9083"/>
</VirtualHostGroup>
<ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="BrokerCluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60" ServerIOTimeoutRetry="-1">
<Server CloneID="19da3jqec" ConnectTimeout="5" ExtendedHandshake="false" LoadBalanceWeight="2" MaxConnections="-1" Name="BrokerClusterNode001_Broker01" ServerIOTimeout="60" WaitForContinue="false">
<Transport Hostname="10.1.140.206" Port="9083" Protocol="http"/>
<Transport Hostname="10.1.140.206" Port="9446" Protocol="https">
<Property Name="keyring" Value="/opt/IBM/HTTPServer/Plugins/config/webServerBroker880/plugin-key.kdb"/>
<Property Name="stashfile" Value="/opt/IBM/HTTPServer/Plugins/config/webServerBroker880/plugin-key.sth"/>
</Transport>
</Server>
<Server CloneID="19da3jrkm" ConnectTimeout="5" ExtendedHandshake="false" LoadBalanceWeight="2" MaxConnections="-1" Name="BrokerClusterNode002_Broker02" ServerIOTimeout="60" WaitForContinue="false">
<Transport Hostname="10.1.140.207" Port="9083" Protocol="http"/>
<Transport Hostname="10.1.140.207" Port="9446" Protocol="https">
<Property Name="keyring" Value="/opt/IBM/HTTPServer/Plugins/config/webServerBroker880/plugin-key.kdb"/>
<Property Name="stashfile" Value="/opt/IBM/HTTPServer/Plugins/config/webServerBroker880/plugin-key.sth"/>
</Transport>
</Server>
<PrimaryServers>
<Server Name="BrokerClusterNode001_Broker01"/>
<Server Name="BrokerClusterNode002_Broker02"/>
</PrimaryServers>
</ServerCluster>
<UriGroup Name="default_host_BrokerCluster_URIs">
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/Broker/*"/>
</UriGroup>
<Route ServerCluster="BrokerCluster" UriGroup="default_host_BrokerCluster_URIs" VirtualHostGroup="default_host"/>
<RequestMetrics armEnabled="false" loggingEnabled="false" rmEnabled="false" traceLevel="HOPS">
<filters enable="false" type="URI">
<filterValues enable="false" value="/snoop"/>
<filterValues enable="false" value="/hitcount"/>
</filters>
<filters enable="false" type="SOURCE_IP">
<filterValues enable="false" value="255.255.255.255"/>
<filterValues enable="false" value="254.254.254.254"/>
</filters>
<filters enable="false" type="JMS">
<filterValues enable="false" value="destination=aaa"/>
</filters>
<filters enable="false" type="WEB_SERVICES">
<filterValues enable="false" value="wsdlPort=aaa:op=bbb:nameSpace=ccc"/>
</filters>
</RequestMetrics>
</Config>
您需要将客户端通过 (880) 寻址 Web 服务器的端口添加到 WAS 中的 default_host 主机别名,以便将其识别为与应用程序相关联。然后生成并传播插件-cfg.xml.
我已成功设置 IBH HTTP 服务器,生成插件,将其从 WAS 管理控制台传播到远程 Web 服务器,但仍然无法通过 Web 服务器连接到应用程序。
我已成功按照 IBM 手册中所述配置 HTTP 服务器的步骤 here。
WebServer 在 880 端口启动,请求时我可以从远程机器看到 IHS 的欢迎页面:http://ihs-ip@:880
请求:http://ihs-ip@:880/app_name 抛出 404 Not Found 消息,日志文件中没有错误。
IHS 机器上的防火墙和 SELinux 被禁用。
我尝试重新启动网络服务器、DMGR 和两个集群应用程序节点,但没有成功。
WebSphere AS 版本为:7.0.0.31 ND
如果需要,我可以 post 我的 httpd.conf 和插件-cfg.xml 内容。
有什么线索吗?
谢谢。
更新:
这是我的插件-cfg.xml 文件的内容(我还注意到我在 default_host 虚拟主机中没有 *.880 别名):
<?xml version="1.0" encoding="ISO-8859-1"?><!--HTTP server plugin config file for the webserver DmgrBrokerClusterCell.ws-005056878644.xxxxx.com-node.webServerBroker880 generated on 2015.02.06 at 01:00:02 AM CET-->
<Config ASDisableNagle="false" AcceptAllContent="false" AppServerPortPreference="HostHeader" ChunkedResponse="false" FIPSEnable="false" FailoverToNext="false" HTTPMaxHeaders="300" IISDisableFlushFlag="false" IISDisableNagle="false" IISPluginPriority="High" IgnoreDNSFailures="false" KillWebServerStartUpOnParseErr="false" MarkBusyDown="false" OS400ConvertQueryStringToJobCCSID="false" RefreshInterval="60" ResponseChunkSize="64" SSLConsolidate="true" TrustedProxyEnable="false" VHostMatchingCompat="false">
<Log LogLevel="Error" Name="/opt/IBM/HTTPServer/Plugins/logs/webServerBroker880/http_plugin.log"/>
<Property Name="ESIEnable" Value="true"/>
<Property Name="ESIMaxCacheSize" Value="1024"/>
<Property Name="ESIInvalidationMonitor" Value="false"/>
<Property Name="ESIEnableToPassCookies" Value="false"/>
<Property Name="ESICacheidFull" Value="false"/>
<Property Name="PluginInstallRoot" Value="/opt/IBM/HTTPServer/Plugins/"/>
<VirtualHostGroup Name="default_host">
<VirtualHost Name="*:9080"/>
<VirtualHost Name="*:80"/>
<VirtualHost Name="*:9443"/>
<VirtualHost Name="*:5060"/>
<VirtualHost Name="*:5061"/>
<VirtualHost Name="*:443"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:9080"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:80"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:9443"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:5060"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:5061"/>
<VirtualHost Name="ws-005056874449.xxxxx.com:443"/>
<VirtualHost Name="*:9083"/>
</VirtualHostGroup>
<ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="BrokerCluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60" ServerIOTimeoutRetry="-1">
<Server CloneID="19da3jqec" ConnectTimeout="5" ExtendedHandshake="false" LoadBalanceWeight="2" MaxConnections="-1" Name="BrokerClusterNode001_Broker01" ServerIOTimeout="60" WaitForContinue="false">
<Transport Hostname="10.1.140.206" Port="9083" Protocol="http"/>
<Transport Hostname="10.1.140.206" Port="9446" Protocol="https">
<Property Name="keyring" Value="/opt/IBM/HTTPServer/Plugins/config/webServerBroker880/plugin-key.kdb"/>
<Property Name="stashfile" Value="/opt/IBM/HTTPServer/Plugins/config/webServerBroker880/plugin-key.sth"/>
</Transport>
</Server>
<Server CloneID="19da3jrkm" ConnectTimeout="5" ExtendedHandshake="false" LoadBalanceWeight="2" MaxConnections="-1" Name="BrokerClusterNode002_Broker02" ServerIOTimeout="60" WaitForContinue="false">
<Transport Hostname="10.1.140.207" Port="9083" Protocol="http"/>
<Transport Hostname="10.1.140.207" Port="9446" Protocol="https">
<Property Name="keyring" Value="/opt/IBM/HTTPServer/Plugins/config/webServerBroker880/plugin-key.kdb"/>
<Property Name="stashfile" Value="/opt/IBM/HTTPServer/Plugins/config/webServerBroker880/plugin-key.sth"/>
</Transport>
</Server>
<PrimaryServers>
<Server Name="BrokerClusterNode001_Broker01"/>
<Server Name="BrokerClusterNode002_Broker02"/>
</PrimaryServers>
</ServerCluster>
<UriGroup Name="default_host_BrokerCluster_URIs">
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/Broker/*"/>
</UriGroup>
<Route ServerCluster="BrokerCluster" UriGroup="default_host_BrokerCluster_URIs" VirtualHostGroup="default_host"/>
<RequestMetrics armEnabled="false" loggingEnabled="false" rmEnabled="false" traceLevel="HOPS">
<filters enable="false" type="URI">
<filterValues enable="false" value="/snoop"/>
<filterValues enable="false" value="/hitcount"/>
</filters>
<filters enable="false" type="SOURCE_IP">
<filterValues enable="false" value="255.255.255.255"/>
<filterValues enable="false" value="254.254.254.254"/>
</filters>
<filters enable="false" type="JMS">
<filterValues enable="false" value="destination=aaa"/>
</filters>
<filters enable="false" type="WEB_SERVICES">
<filterValues enable="false" value="wsdlPort=aaa:op=bbb:nameSpace=ccc"/>
</filters>
</RequestMetrics>
</Config>
您需要将客户端通过 (880) 寻址 Web 服务器的端口添加到 WAS 中的 default_host 主机别名,以便将其识别为与应用程序相关联。然后生成并传播插件-cfg.xml.