3 Replies Latest reply on Dec 28, 2004 3:40 PM by wiley173

    jboss-web.xml and virtual-hosts

    wiley173

      This works great....

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-web>
      <context-root />
      <virtual-host>www.mysite.com<virtual-host>
      </jboss-web>

      But I can't get jboss to see just mysite.com... I've set an alias in server.xml
      mysite.com

      I tried adding another vhost entry in jboss-web.xml and also an alias and that doesn't work either ??? Can anyone give me a clue please ?

      xxxxxxxxxxxxxx
      Newbie
      xxxxxxxxxxxxxx

        • 1. Re: jboss-web.xml and virtual-hosts
          pergesu

          I don't think there's anything wrong with doing

          <?xml version="1.0" encoding="UTF-8"?>
          <jboss-web>
          <context-root />
          <virtual-host>www.mysite.com<virtual-host>
          <virtual-host>mysite.com<virtual-host>
          </jboss-web>

          • 2. Re: jboss-web.xml and virtual-hosts
            wiley173

            Hello, thanks for the help.

            I tried that but it does not work. Does it work for you?

            thanks

            • 3. Re: jboss-web.xml and virtual-hosts
              wiley173

              This is what my jboss-web.xml looks like...

              <?xml version="1.0" encoding="UTF-8"?>
              <jboss-web>
              <context-root />
              <virtual-host>www.mysite.tld</virtual-host>
              <virtual-host>mysite.tld</virtual-host>
              </jboss-web>

              I've also tried
              <?xml version="1.0" encoding="UTF-8"?>
              <jboss-web>
              <context-root />
              <virtual-host>www.mysite.tld</virtual-host>
              mysite.tld
              </jboss-web>

              I can't seem to get anything to work, maybe I should use mod-rewrite...