WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  IBM HTTP Server and Plugin issue--- 404 Error

    Posted Sat November 30, 2013 05:52 AM
    Hi all,

        I am using IBM HTTPServer 8.5 which is configured with IBM WAS 8.5 using the Web Server Plug-ins for IBM WebSphere Application Server 8.5.

     I installed the HTTP Server 8.5 and Plugin 8.5 using Installation Manager. It was succesully installed. I added the webserver definition in WAS console as well.


     After these configurations, tried accessing a web based application which is deployed in WAS using webserver port(80) , it is showing 404 error ( page not found). The Generate and Propogate plugin is happening with no issues. Even I am able to view the updated URI's,Virtual hosts,etc. under plugin-cfg.xml.

     
     After doing some R&D , I found that there is no entry for LoadModule and WebSpherePluginConfig under httpd.conf file of webserver.

    Is this the reason for 404 error since plugin is not able to communicate to WAS layer?

    As per my understanding is concerned, once the webserver and plugins are installed, automatically those entries(LoadModule and WebSpherePluginConfig) will be added under httpd.conf file.

    Correct me if I am wrong in understanding the above concept.

    Please suggest some solution for the same.


    --Thanks and Regards,
      Pavan A





  • 2.  IBM HTTP Server and Plugin issue--- 404 Error

    Posted Sat November 30, 2013 06:33 AM
    Hi Pavan,

      You are rigth, you need load module and plugin cfg directives in httpd.conf.
     
      Maybe the order of installation or installing at the same time HTTP and Plugin?
     
      Are you installing Web Server and WAS in different machines? in that case take in mind execution of configureweb_server_name.sh/bat script in HTTP server.
     
      Configuring a web server and an application server on separate machines (remote)
      pic.dhe.ibm.com/infocenter/wasinfo/v8r5/...
     
      Any case with the next instructions you can configure manually Web Server (locally or remote)
     
      Configuring IBM HTTP Server Version 8.5
      pic.dhe.ibm.com/infocenter/wasinfo/v8r5/...  

      Edit your httpd.conf and add the next lines (according to your OS) at the end of the file:
     
        LoadModule was_ap22_module /usr/IBM/WebSphere/Plugins/bin/mod_was_ap22_http.so
        
        WebSpherePluginConfig /usr/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml

      After adding directives restart your HTTP Server and check that is starting sucessfully.
        
      Hope this helps. Tell us if you need more support.
     
    regards


  • 3.  IBM HTTP Server and Plugin issue--- 404 Error

    Posted Mon December 02, 2013 02:15 AM

    Hi Gabriel,

        Thanks for your valuable suggestions.


      I am installing IHS 8.5 and Webserver plugin for WAS 8.5 at the same time using Installation Manager(IM) mode by selecting the packages. I am installing both webserver and WAS in the same machine.


      Is there any provision that LoadModule and WebSpherePluginConfig properties be loaded to httpd.conf file automatically with proper values?


      I wanted to avoid the manual operation of loading those properties in httpd.conf file.


    Thanks in advance..


    -Thanks and Regards,
     Pavan A



  • 4.  IBM HTTP Server and Plugin issue--- 404 Error

    Posted Mon December 02, 2013 06:35 AM
    your web server doesnt know where the plugin is .. thats why when you access your application from web server, it tries to serve it from the documentRoot of web server and showing 404.

    It could be possbile that .. when you installed plugin after installing IHS you didnt gave the correct path of IHS.

    Try adding those two missing lines that reference to XML and SO file.


  • 5.  IBM HTTP Server and Plugin issue--- 404 Error

    Posted Mon December 02, 2013 03:35 PM
    Hi Pavan,
     
       Follow the instructions, you have almost tasks completed:
       
       Configuring a web server and an application server profile on the same machine
       pic.dhe.ibm.com/infocenter/wasinfo/v8r5/...
     
     You are only two lines far of a working configuration

      Hope this help. Tell us if you need more support.
       
    regards


  • 6.  IBM HTTP Server and Plugin issue--- 404 Error

    Posted Fri December 06, 2013 02:47 AM
    Hi,

        Those two configurations (LoadModule and Websphere Plugin Path) in httpd.conf file worked.


         Thanks Gabriel and Joseph for your support.


    --Thanks and Regards,
      Pavan A
     


  • 7.  IBM HTTP Server and Plugin issue--- 404 Error

    Posted Fri December 06, 2013 06:08 AM
    Great Pavan!!!

    Finally have you added the lines or have used other procedure?
     
    Glade to help.

    Regards


  • 8.  IBM HTTP Server and Plugin issue--- 404 Error

    Posted Wed December 11, 2013 09:00 AM
    Hi Gabriel,

            Sorry for the late response.. I added those two parameters manually in httpd.conf file and restarted the webserver. It started working..

           Is there any other method that can be accomplished so that It avoids the manual addition of those entries in httpd.conf file?

         Thanks in advance.


    Thanks and Regards,
    Pavan A


  • 9.  IBM HTTP Server and Plugin issue--- 404 Error

    Posted Wed December 11, 2013 09:59 AM
    Pavan,

      look in this thread my #5 response

      www.websphereusergroup.org/go/thread/vie...

      Hope this helps.

    regards