httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Godrej <>
Subject Re: [users@httpd] how to set auto redirection in apache with tomcat
Date Thu, 24 Feb 2011 05:54:22 GMT
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 restartand 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://
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 <>
Sent: Thu, 24 February, 2011 3:32:37 AM
Subject: Re: [users@httpd] how to set auto redirection in apache with tomcat

Does this work?

       ProxyPass / ajp://
       ProxyPassReverse / ajp://

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 ...

On Thu, Feb 24, 2011 at 8:18 AM, James Godrej <> wrote:

>I have a site
>right now what you are seeing is a default Tomcat6 page.
>I am using mod_ajp as a front end and Apache vhost configuration for same is
><VirtualHost *:80 >
>       ServerName
>       ServerAdmin webmaster@localhost
>       ProxyRequests off
>       <Proxy *>
>       Order deny,allow
>       Allow from all
>       </Proxy>
>       ProxyPreserveHost On
>       ProxyPass / ajp://
>       ProxyPassReverse / ajp://
>How ever I have an application running on it
>what I want to do is when some one opens
>then rather than seeing Tomcat6 home page from
>the person is  redirected to olat application which is in
>how can this be achieved?
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>  "   from the digest:
>For additional commands, e-mail:

View raw message