You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Godrej <ja...@yahoo.in> on 2011/02/23 22:16:42 UTC
how to set auto redirection in tomcat
I have a site http://social.openitup.in
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 social.openitup.in
ServerAdmin webmaster@localhost
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass / ajp://192.168.1.19:8009/
ProxyPassReverse / ajp://192.168.1.19:8009/
</VirtualHost>
How ever I have an application running on it
http://social.openitup.in/olat
what I want to do is when some one opens
http://social.openitup.in
then rather than seeing Tomcat6 home page from
/var/lib/tomcat6/webapps/ROOT/index.html
the person is redirected to olat application which is in
/var/lib/tomcat6/webapps/olat
how can this be achived?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: how to set auto redirection in tomcat
Posted by James Godrej <ja...@yahoo.in>.
On Thu, Feb 24, 2011 at 4:41 AM, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> James,
>
> On 2/23/2011 5:16 PM, James Godrej wrote:
>> ----- Original Message ----
>> From: "Caldarale, Charles R" <Ch...@unisys.com>
>> To: Tomcat Users List <us...@tomcat.apache.org>
>> Sent: Thu, 24 February, 2011 3:01:01 AM
>> Subject: RE: how to set auto redirection in tomcat
>>
>>> From: James Godrej [mailto:jamesgodrej@yahoo.in]
>>> Subject: how to set auto redirection in tomcat
>>
>>> I am using mod_ajp as a front end
>>
>>> Why? What purpose is it serving?
>>> If it's not doing anything useful (e.g., handling PHP), you should simplify
>>>your
>>> life and remove it.
>>
>> I am running at least 20 other websites and 2 of them use mod_proxy_ajp
>> each of these is hosted on some machine internally on lan.
>>
>>> How ever I have an application running on it
>>> http://social.openitup.in/olat
>>> what I want to do is when some one opens
>>> http://social.openitup.in
>>
>>> Remove the existing ROOT application, and rename yours to ROOT.
>>
>> No this did not worked I tried.
>
> Did you name it "ROOT", or did you name it "root" (or "Root" or "rOOt"
> or "rooT")? Case matters, even on win32.
>
> You might have to restart Tomcat after doing that.
>
> Using "ROOT" as the webapp name definitely works. People do it all the
> time...
>
Yes renaming to ROOT worked.Thanks
Christopher.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: how to set auto redirection in tomcat
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James,
On 2/23/2011 5:16 PM, James Godrej wrote:
> ----- Original Message ----
> From: "Caldarale, Charles R" <Ch...@unisys.com>
> To: Tomcat Users List <us...@tomcat.apache.org>
> Sent: Thu, 24 February, 2011 3:01:01 AM
> Subject: RE: how to set auto redirection in tomcat
>
>> From: James Godrej [mailto:jamesgodrej@yahoo.in]
>> Subject: how to set auto redirection in tomcat
>
>> I am using mod_ajp as a front end
>
>> Why? What purpose is it serving?
>> If it's not doing anything useful (e.g., handling PHP), you should simplify your
>> life and remove it.
>
> I am running at least 20 other websites and 2 of them use mod_proxy_ajp
> each of these is hosted on some machine internally on lan.
>
>> How ever I have an application running on it
>> http://social.openitup.in/olat
>> what I want to do is when some one opens
>> http://social.openitup.in
>
>> Remove the existing ROOT application, and rename yours to ROOT.
>
> No this did not worked I tried.
Did you name it "ROOT", or did you name it "root" (or "Root" or "rOOt"
or "rooT")? Case matters, even on win32.
You might have to restart Tomcat after doing that.
Using "ROOT" as the webapp name definitely works. People do it all the
time...
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk1llD8ACgkQ9CaO5/Lv0PD0twCeK84xRWWUFC92plxV18I45ICe
e7AAoI7AezKBuR47d2J3TuhLL0u/JgZ5
=CM7H
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: how to set auto redirection in tomcat
Posted by James Godrej <ja...@yahoo.in>.
----- Original Message ----
From: "Caldarale, Charles R" <Ch...@unisys.com>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Thu, 24 February, 2011 3:01:01 AM
Subject: RE: how to set auto redirection in tomcat
> From: James Godrej [mailto:jamesgodrej@yahoo.in]
> Subject: how to set auto redirection in tomcat
> I am using mod_ajp as a front end
>Why? What purpose is it serving?
>If it's not doing anything useful (e.g., handling PHP), you should simplify your
>life and remove it.
I am running at least 20 other websites and 2 of them use mod_proxy_ajp
each of these is hosted on some machine internally on lan.
> How ever I have an application running on it
> http://social.openitup.in/olat
> what I want to do is when some one opens
> http://social.openitup.in
>Remove the existing ROOT application, and rename yours to ROOT.
No this did not worked I tried.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: how to set auto redirection in tomcat
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: James Godrej [mailto:jamesgodrej@yahoo.in]
> Subject: how to set auto redirection in tomcat
> I am using mod_ajp as a front end
Why? What purpose is it serving? If it's not doing anything useful (e.g., handling PHP), you should simplify your life and remove it.
> How ever I have an application running on it
> http://social.openitup.in/olat
> what I want to do is when some one opens
> http://social.openitup.in
Remove the existing ROOT application, and rename yours to ROOT.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.