5 Replies Latest reply on Mar 14, 2005 1:03 AM by cstechno

    setting up virtual host-VERY URGENT......

    cstechno

      Hi all ,

      We have a site running by the name xyz.com and another by name xyz.com/abc.Now we have registered another Domain name like xyzabc.com,what we need is whenever somebody types xyzabc.com, the page must get directed to xyz.com/abc, we tried changing <virual-host> in the jboss-web.xml. It doen't work.can anybody suggest an alternative to get this working .Thanx in advance.
      ps: we use two ear files for the two applications
      and jboss version is jboss 4.0.1

      CS Techno

        • 1. Re: setting up virtual host-VERY URGENT......
          cstechno

          pls respond asap...

          • 2. Re: setting up virtual host-VERY URGENT......
            cstechno

             

            "cstechno" wrote:
            Hi all ,

            We have a site running by the name xyz.com and another by name xyz.com/abc.Now we have registered another Domain name like xyzabc.com,what we need is whenever somebody types xyzabc.com, the page must get directed to xyz.com/abc, we tried changing <virual-host> in the jboss-web.xml. It doen't work.can anybody suggest an alternative to get this working .Thanx in advance.
            ps: we use two ear files for the two applications
            and jboss version is jboss 4.0.1

            CS Techno
            [img][/img][img][/img]

            • 3. Re: setting up virtual host-VERY URGENT......
              cstechno

               

              "cstechno" wrote:
              "cstechno" wrote:
              Hi all ,

              We have a site running by the name xyz.com and another by name xyz.com/abc.Now we have registered another Domain name like xyzabc.com,what we need is whenever somebody types xyzabc.com, the page must get directed to xyz.com/abc, we tried changing <virual-host> in the jboss-web.xml. It doen't work.can anybody suggest an alternative to get this working .Thanx in advance.
              ps: we use two ear files for the two applications
              and jboss version is jboss 4.0.1

              CS Techno


              • 4. Re: setting up virtual host-VERY URGENT......
                trackingroi.com

                Can you have an index.jsp look at the hostname header and do a redirect based upon that? That's the most simple way I can think of

                • 5. Re: setting up virtual host-VERY URGENT......
                  cstechno

                  Thanx for answering, but the problem is we do not know which url it came from suppose we have
                  1)kkk.com
                  2)aaa.com

                  if kkk.com is typed it must go to
                  ip:xxx.xxx.xxx.xxx/test --default is kkk(1st appl)

                  otherwise
                  ip:xxx.xxx.xxx.xxx/test/aaa(2nd appl)

                  The real pblm is that at, test we will not know if we have arrived from kkk.com or aaa.com