1 Reply Latest reply on Nov 18, 2004 2:42 AM by erikture

    Port redirect for specific virtual host

    erikture

      Hello!

      I am using jboss 3.2.6 on a Linux computer.
      I have several websites deployed using virtual host.
      Tomcat is running with port 80 exposed.
      Now I would like to install a seperate non java webserver on the same machine.

      Is it possible to configure Tomcat or Linux to serve one specific virtual host and redirect it to for example port 90 on the other webserver?

      I would like the user to believe that the application is running on port 80 but it is actually running on port 90.

      /Erik

        • 1. Re: Port redirect for specific virtual host
          erikture

          Hello!

          I have understood that what I whant to do can be don with Apache in front of Tomcat, using rewriteengine and som rewriterule.

          But could it be done without Apache?

          I really dont think that I need Apache because 99.9% of the requests to my server can be handled by Jboss/Tomcat direct and the last small 0.1% needes to be forwarded to some other internal webserver.


          My question is: Can Tomcat handle rewriteurl/rewritecond by itself, or the same functionallity at least?

          /Erik