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

Deployment context root doesn't take hosts into account.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • 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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: