Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1574

Deployment context root doesn't take hosts into account.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.1.2.Final
    • None
    • Hide

      Having an Undertow setup like this:

      <server name="default-server">
          <host name="default-host" alias="localhost" />
          <host name="foobar" alias="localhost2" />
      </server>
      

      if you deploy an application to the other host, e.g.

      jboss-web.xml
      <jboss-web>
          <virtual-host>foobar</virtual-host>
          <context-root>/</context-root>
      </jboss-web>
      

      the context root will correctly display as '/' but it will point to 127.0.0.1, not localhost2

      Show
      Having an Undertow setup like this: <server name= "default-server" > <host name= "default-host" alias= "localhost" /> <host name= "foobar" alias= "localhost2" /> </server> if you deploy an application to the other host, e.g. jboss-web.xml <jboss-web> <virtual-host> foobar </virtual-host> <context-root> / </context-root> </jboss-web> the context root will correctly display as '/' but it will point to 127.0.0.1, not localhost2

      The deployment preview creates a link for context root but it always points to the default host. If the deployment is on a different host the link is invalid.

              mpetrov@redhat.com Michal Petrov
              mpetrov@redhat.com Michal Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: