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.  Plug-in priority IHS-WAS

    Posted Mon November 21, 2011 02:55 AM
    Hi,

    I'm wondering if it's posible to give more priority to the content in htdocs (IHS) than the content in WAS.

    For exaple, if I deploy an application with root context "app" in WAS and I create the dir "app" in htdocs in IHS, the plug-in is going to redirect the whole requests to that root conetxt to the WAS even though there is no content in WAS.

    Request: http://ap/probe.txt 
    IHS: //ap/probe.txt
    WAS: //ap/other.txt

    The result is file not found.

    ¿Can I change this behaviour and priorize the IHS content? 

    Thanks! 


  • 2.  Plug-in priority IHS-WAS

    Posted Mon November 21, 2011 02:31 PM
    in this case,  you can use rewrite rules in httpd.conf to serve static content from ihs


  • 3.  Plug-in priority IHS-WAS

    Posted Mon November 21, 2011 03:46 PM
    The behaviour I'd like is to serve first the htdocs (IHS) content and then, if it doesn't exists, the app server content.

    I think it can't be done with rewrite rules.

    Thanks anyway. 


  • 4.  Plug-in priority IHS-WAS

    Posted Mon November 21, 2011 08:20 PM
    Most of the apps keep all the static files in the docroot and send only dynamic content related requests to app server.  for example, you keep images, pdf files etc... on webserver and send dynamic requests to app using the context root. Incase,if the path of images, pdfs etc.. conflicts with context root, then use rewrite rule to server from webserver.