Hi Igor,
thanks for message I had tried.I just came across a trick which did the job.
I had
hat I did to get it working was deleted
/var/lib/tomcat6/webapps/ROOT |
and renamed my application
/var/lib/tomcat6/webapps/olat |
to
/var/lib/tomcat6/webapps/ROOT |
and removed the olat.war from
/var/lib/tomcat6/webapps/ |
then restarted tomcat6
/etc/init.d/tomcat6 restart
and I could see auto redirection happening. Here I would like to mention I did not changed the original vhost which I posted in my first question and ProxyPass /olat ajp://192.168.1.5:8009/olat
had not worked.But this trick which I mentioned above did the job.Mentioning here so that it helps some one else.
From: Igor Cicimov <icicimov@xxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Sent: Thu, 24 February, 2011 3:32:37 AM
Subject: Re:
how to set auto redirection in apache with tomcat
Does this work?
ProxyPass / ajp://
192.168.1.19:8009/olat
ProxyPassReverse / ajp://
192.168.1.19:8009/olat
Also not sure if "ProxyPreserveHost On" has eny meaning in case of reverse proxy but not sure and don't have time now to double check :) Maybe someone else can confirm ...