tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: Apache 2.2 proxy and Tomcat 5.5 container - couldn't map to root
Date Tue, 22 Aug 2006 03:11:22 GMT

"Olexandr Prokhorenko" <prokhorenko@gmail.com> wrote in message 
news:loom.20060822T011043-272@post.gmane.org...
> Hi everybody,
>
> I believe this is a common problem, but I wasn't able to find any answer 
> to it,
> yet.  I have a project WAR deployed in Tomcat 5.5 container, so I can see 
> it as
> http://tomcat.server:8080/project.  I've installed Apache 2.2 HTTP server 
> as a
> front-end, and now I want to see my J2EE project as http://project.name/. 
> I've
> configured the mod_proxy and all other stuff to do the proxing and 
> redirect.  It
> works just fine through AJP except one thing.  First of all, Acegi 
> security SSO
> doesn't work -- it requires to sign-in every single page.  For the second, 
> all
> links are using path /prohject, but not /.  So I work with project from
> http://project.name/project, but I can't map it to / (root), because I 
> believe
> when it's being processed, it supposes to be executed with the different 
> path
> (/project) so all links it builds (Acegi also) are /project/blablabla.jsp, 
> etc.
> Can somebody please help me out with this?
>

How about:
  RewriteRule ^/.*\.jsp ajp://localhost:8009/project/$1.jsp [P]
  RewriteRule ^/servlet/.* ajp://localhost:8009/project/servlet/$1 [P]


> Thanks.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message