1 Reply Latest reply on Sep 26, 2013 3:00 AM by jfclere

    can RewriteValve behave like mod_proxy?

    miani

      Hi,

       

      I don't believe it can, but I was wondering if anyone can state definitively if the Jboss rewrite module can act like Apache's mod_proxy?

       

      Specifically, I have a situation where I have a public facing Jboss and another web server on the back lan with no public face - actually same server, listening on a different port.

       

      What I'd like to do is have a rule invoked under certain conditions, something like the one below, where the following would occur:

       

      1. User points browser to https://mypublicdomain.com/

      2. JBoss hears requests and rule gets invoked by RewriteModule

      3. JBoss passes request onto server listening somewhere on back LAN

      4. Returns results to browser

       

      All this transparently to end user, i.e. I do not want to use a Rewrite

       

      RewriteRule ^(.*)$      https://192.168.1.100:9443/someOtherApp$1  [P]

       

      Is this possible at all? Perhaps with a RewriteMap?

       

      This is on JBoss 4.2.3.GA incidentally.

       

      Thanks in advance.

       

      Jim