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.  Setting up IHS to support two different URLs (but same port number, same path)

    Posted Thu February 09, 2017 07:39 PM

    I am looking for input on the issue below.

    I have a WAS app, which is accessed via http using DOMAIN1:80/PATH1. A http request using DOMAIN1:80/PATH1 is sent to IHS which, via PLUGIN XML1, then goes to WAS on HOST1.

    Now I want to use DOMAIN2:80/PATH1 to access the same app. A http request using DOMAIN2:80/PATH1 is sent to IHS which, via PLUGIN XML2, then goes to WAS on HOST1.

    How do I setup IHS to support accessing the same app via two different URLs (but same port number, same path) and two different PLUGIN XML?

    Any takers?

     



  • 2.  RE: Setting up IHS to support two different URLs (but same port number, same path)

    Posted Fri February 10, 2017 12:50 AM

    If the IHS installation is the same, you don't need 2 different plugin configurations. You can create 2 separate virtualhosts (IP or name) for each domain name.



  • 3.  RE: Setting up IHS to support two different URLs (but same port number, same path)

    Posted Fri February 10, 2017 07:34 AM

    To further clarify my issue...

    A http request using DOMAIN1:80/PATH1 is sent to IHS which, via PLUGIN XML1, then goes to WAS app on HOST1/CLUSTER1.

    A http request using DOMAIN2:80/PATH1 is sent to IHS which, via PLUGIN XML2, then goes to WAS app on HOST1/CLUSTER2.

    Both requests use the same URL path. I believe WAS PLUGIN XML cannot send requests to different clusters if URL path is the same.

    How do I setup IHS to support accessing the same app via two different URLs (but same port number, same path) and two different PLUGIN XML?

    Maybe there is something I can do with WAS Virtual Host configurations to help?



  • 4.  RE: Setting up IHS to support two different URLs (but same port number, same path)

    Posted Fri February 10, 2017 08:14 AM

    Have a look on the following technote:

    http://www-01.ibm.com/support/docview.wss?uid=swg21331062



  • 5.  RE: Setting up IHS to support two different URLs (but same port number, same path)

    Posted Fri February 17, 2017 02:17 PM

    Thank you Panagiotis

    I got what I needed from the link. The solution in the link was simpler than what I was going to do. You saved me a lot of work.