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.  Port Based Virtual Hosting

    Posted 08/09/16 04:03 PM

    Hey All,

     

    I am trying to setup port based virtual hosts with in IHS and I have a backend of multiple WebSphere applications that I would like to access through IHS. If I  setup these virtual hosts how can I restrict access of certain application from certain ports. I have only one plugin file,  and the app works on all the ports that are defined with in IHS, I want to restrict app to work through just one port and use other ports for other apps.

     

    How can I achieve this ? Thanks in Advance for the suggestions.



  • 2.  RE: Port Based Virtual Hosting

    Posted 08/17/16 11:38 AM

    Is this what you are wanting to do?

    https://publib.boulder.ibm.com/httpserv/manual70/vhosts/name-based.html



  • 3.  RE: Port Based Virtual Hosting

    Posted 08/30/16 05:42 AM

    Hi,

      I'm not understanding your environment.

      One IHS (with plugin), one AppServer(???) with multiple applications(??).

      You can create a new virtual host with your desired port and then at the application level assign the virtual host. Then regenerate and propagate the plugin.

      Hope this helps. Tell us if you need more support

    Regards



  • 4.  RE: Port Based Virtual Hosting

    Posted 08/31/16 03:25 PM

    Thanks Guys for the response.

    My environment is one IHS, multiple jvms that have different apps installed. Creating Virtual hosts for the IHS ports  in the Websphere console and assign that virtual host to the application ?

    Is that what you are suggesting Gabriel ?  Are there any other alternatives



  • 5.  RE: Port Based Virtual Hosting

    Posted 09/02/16 04:26 AM

    Hi,

      I'm suggesting to create virtualhosts (VH) for your JVMs (servers) ports (Environment-Virtual Host) not at the WebServer level. Then in your applications select different each VH.

      By default there are 3 VH, admin_host, default_host and proxy_host. All new servers (JVM) ports are added to "default_host", and when you are deploying the application by default selected VH is "default_host".

      If you create each VH to each JVM (server) you can serve request only by the ports selected in the VH.

      Remember to change at application level VH and then regenerated and propagated the plugin.

      Another option is to create VHs at WebServer level, that usually is done to attend  request from the same IHS but different servernames (app1.company.com, app2.company.com,....)

      Hope this helps. Tell us if you need more support.

    Regards