Topic
6 replies Latest Post - ‏2013-12-12T19:26:24Z by Eric Covener
SystemAdmin
SystemAdmin
590 Posts
ACCEPTED ANSWER

Pinned topic How can I configure a Virtual Host with Websphere Liberty Profile V8.5

‏2013-03-17T16:56:51Z |
Hello.

How can I configure a Virtual Host with Websphere Liberty Profile V8.5

I want to use
http://dev.mydomain.lan/
instead of
http://localIpAddress/MyApp/

Thanks.
  • T.Bussiere
    T.Bussiere
    4 Posts
    ACCEPTED ANSWER

    Re: How can I configure a Virtual Host with Websphere Liberty Profile V8.5

    ‏2013-10-29T09:57:36Z  in response to SystemAdmin

    Hi,

    also interrested in virtual host, I found out we can add in the server.xml

    <virtualHost id="myvirtual" /> but then I cannot access my app on the http://myvirtual.localhost:9080/Myapp Url.

    In fact I always get in the console "Web application available (default_host): http://localhost:9080/MyApp/ "

     

    If I try 

    <virtualHost enabled="true" id="myvirtual"/> 
    <virtualHost enabled="true" id="myvirtual2"/>
     
    <httpEndpoint host="*" httpPort="9081" httpsPort="9445" id="myvirtual2" virtualHost="myvirtual2" />
    <applicationMonitor updateTrigger="mbean" />
    <application context-root="MyApp" id="MyApp" location="MyApp.war" name="MyApp" type="war"/>
     
     
    <httpEndpoint host="*" httpPort="9082" httpsPort="9045" id="myvirtual" virtualHost="myvirtual"/>
    <applicationMonitor updateTrigger="mbean"/>
    <application context-root="MyApp2" id="MyApp2" location="MyApp2.war" name="MyApp2" type="war"/>

    ==> I will get

    Web application available (default_host): http://localhost:9081/MyApp/

    Web application available (default_host): http://localhost:9081/MyApp2/

     

     

    any clues?

    Thanks in advance.

    • Eric Covener
      Eric Covener
      16 Posts
      ACCEPTED ANSWER

      Re: How can I configure a Virtual Host with Websphere Liberty Profile V8.5

      ‏2013-10-29T11:58:13Z  in response to T.Bussiere

      As you've discovered, Virtual hosts aren't currently usable in Liberty. See APAR PM97514 when it closes for more details. 

      • T.Bussiere
        T.Bussiere
        4 Posts
        ACCEPTED ANSWER

        Re: How can I configure a Virtual Host with Websphere Liberty Profile V8.5

        ‏2013-10-29T12:48:04Z  in response to Eric Covener

        Thanks Eric for your answer.

        I obviously didn't checked on WWQ&A. Let's hope a fix will be shipped in the fix pack scheduled for november the 11th...

        • Eric Covener
          Eric Covener
          16 Posts
          ACCEPTED ANSWER

          Re: How can I configure a Virtual Host with Websphere Liberty Profile V8.5

          ‏2013-10-29T12:55:04Z  in response to T.Bussiere

          Unfortunately it is not resolved in 8.5.5.1

          • 394W_liang_yang
            394W_liang_yang
            1 Post
            ACCEPTED ANSWER

            Re: How can I configure a Virtual Host with Websphere Liberty Profile V8.5

            ‏2013-12-12T04:55:24Z  in response to Eric Covener

            HI, Eric

            when will the PM97514 be resolved, what's the plan? 

            • Eric Covener
              Eric Covener
              16 Posts
              ACCEPTED ANSWER

              Re: How can I configure a Virtual Host with Websphere Liberty Profile V8.5

              ‏2013-12-12T19:26:24Z  in response to 394W_liang_yang

              > when will the PM97514 be resolved, what's the plan?

              I don't know. If it's more then curiosity, you'll need a PMR.