1 Reply Latest reply on Mar 13, 2007 4:56 AM by zdaler

    using apache as jboss frontend and fine tuning url contexts

    zdaler

      Hi,

      I'm using apache as a frontend for JBoss and I use mod_jk as the connector.
      However, I'm not really happy with having my two applications accessed by :
      http://mysite.com/application1 and
      http://mysite.com/application2

      What I want (and have been unable to setup properly so far) is to access my first application with
      http://mysite.com/
      and my second application with http://mysite.com/application2

      I've tried with mod_rewrite but failed ... has anyone some ideas/pointers ?

      Thanks in advance.

        • 1. Re: using apache as jboss frontend and fine tuning url conte
          zdaler

          actually, using mod_rewrite I've been able to almost achieve what I'm trying to do :

          RewriteCond %{REQUEST_URI} !^/application2 [NC]
          RewriteRule ^/(.*) /application1/$1 [L,P]
          
          JkMount /* ajp13
          


          The only problem is that all the links in application1 point to /application1/mypage.jsp ... so after only one navigation my url becomes :
          http://mysite.com/application1/mypage.jsp

          Any hints ?