1 Reply Latest reply on May 9, 2017 9:38 AM by Priyanka Tyagi

    Jboss 7.1 Context Root issue  for Virtual host

    Ayaz ahmad Newbie

      Hi All,

       

      I am facing issue on virtual host to resolve the DNS to host my portal on Jboss 7.1. My applications is not  accessible over http://app.test.com , i.e application is deployed with root context(/).I need urgent help on this.

       

      jboss-web.xml

       

      <?xml version="1.0" encoding="UTF-8"?> 

      <jboss-web xmlns="http://www.jboss.com/xml/ns/javaee

         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance

         xsi:schemaLocation=" 

            http://www.jboss.com/xml/ns/javaee 

            http://www.jboss.org/j2ee/schema/jboss-web_5_1.xsd"> 

           <context-root>helloworld</context-root> 

         <virtual-host>default-host</virtual-host>

      </jboss-web>

       

      standlaone.xml

      <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host">

                  <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>

                  <virtual-server name="default-host" enable-welcome-root="false" default-web-module="helloworld">

                      <alias name="localhost"/>

                      <alias name="app.test.com"/>

                  </virtual-server>

              </subsystem>

       

      I am able too see my application via below link

      http://localhost:8089/hi.jsp

       

      While trying to run via app.test.com I am not able to see the page though in my browser.

       

       

      Local Host result:-

      Helloworld.jpg