Search code examples
javawebspherewebsphere-7ibmhttpserver

WebSphere + IHS Redirect not working


I have a WebSphere Application Server 7 and a IHS 7 configured in my machine. When I installed an application, I can access it from the JVM port (eg: 9080) but I can't access through port 80, I have configured the plugin in the WAS admin console, but it's not working. This is the plugin-cfg.xml file content

<?xml version="1.0" encoding="ISO-8859-1"?><!--HTTP server plugin config file for the webserver 01-14305N605062Node02Cell.01-14305N605062Node02.webserver1 generated on 2014.01.21 at 09:49:06 AM BRST-->
<Config ASDisableNagle="false" AcceptAllContent="false" AppServerPortPreference="WebserverPort" ChunkedResponse="false" FIPSEnable="false" IISDisableNagle="false" IISPluginPriority="High" IgnoreDNSFailures="false" RefreshInterval="60" ResponseChunkSize="64" VHostMatchingCompat="false">
   <Log LogLevel="Error" Name="C:\IBM\HTTPServer\Plugins/logs/webserver1/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="PluginInstallRoot" Value="C:\IBM\HTTPServer\Plugins\"/>
   <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>

Can anyone help me with this?

Thanks.


Solution

  • Do you have a Web Server defined in the WebSphere console? It'll be under something like Servers > Web Servers. (I'm looking at a different version of WAS right now.) If not, you need to create one.

    If you do, you may be looking at a different location for the plugin configuration than the one WebSphere is writing to. httpd.conf contains the location IHS is using, and the WebSphere console will show you its location if you select the defined Web Server and look at the Configuration file name input field.

    I think one of those two is likely since you don't even have a default_host defined in your file. Something like:

       <VirtualHostGroup Name="default_host">
          <VirtualHost Name="*:9080"/>
          <VirtualHost Name="*:80"/>
          <VirtualHost Name="*:9443"/>
          <VirtualHost Name="*:5060"/>
          <VirtualHost Name="*:5061"/>
          <VirtualHost Name="*:443"/>
       </VirtualHostGroup>
    

    Finally, you'll want to select both the Application Server(s) and the Web Server(s) when you map your web modules to servers.

    There are console options to force re-generating the plugin, either Globally under the Environment menu, or for individual Web Servers under each server. You can do this and see if the filesystem timestamp and the file content change in the location you expect.