You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ran <ra...@gmail.com> on 2007/05/26 21:41:03 UTC
subdomain name redirect to different context path
Hi all,
I would like to point 'forums.mysite.com' to 'www.mysite.com:8080/forums'
How could I do that with tomcat conf ? or I need to match the requested url
in a redirect servlet ? or is it even a DNS zone file question ?
Thanks,
ran
Re: subdomain name redirect to different context path
Posted by Rashmi Rubdi <ra...@gmail.com>.
On 5/26/07, Caldarale, Charles R <Ch...@unisys.com> wrote:
> > From: Rashmi Rubdi [mailto:rashmi.sub@gmail.com]
> > Subject: Re: subdomain name redirect to different context path
> >
> > I think he wants to redirect or forward all requests from
> > 'forums.mysite.com' to 'www.mysite.com:8080/forums'
> >
> > in that case wouldn't he be setting up a Filter that redirects or
> > forwards a request from forums.mysite.com to
> > www.mysite.com:8080/forums ?
>
> The filter is likely not necessary, if Pid's instructions are followed.
> What is absolutely required is a DNS registration for forums.mysite.com,
> otherwise no one will be able to reach the site. Once that's in place
> along with a connector configured for port 80 rather than 8080,
> deploying the forums webapp as ROOT is all that's required - no
> programming necessary.
Thanks for your reply.
>From the original post , it is not known whether 'forums.mysite.com'
exists or not.
It appeared as though it exists, and is already reachable.
> - Chuck
>
>
-Rashmi
---------------------------------------------------------------------
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
Re: subdomain name redirect to different context path
Posted by David Wall <d....@computer.org>.
Assuming you'll want to do other redirects in the future to different
webapps (not all sharing ROOT's "/" for example and just using subdirs,
but actual distinct webapps), you might take a look at URL rewrite at
http://tuckey.org/urlrewrite/
David
---------------------------------------------------------------------
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
RE: subdomain name redirect to different context path
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Rashmi Rubdi [mailto:rashmi.sub@gmail.com]
> Subject: Re: subdomain name redirect to different context path
>
> I think he wants to redirect or forward all requests from
> 'forums.mysite.com' to 'www.mysite.com:8080/forums'
>
> in that case wouldn't he be setting up a Filter that redirects or
> forwards a request from forums.mysite.com to
> www.mysite.com:8080/forums ?
The filter is likely not necessary, if Pid's instructions are followed.
What is absolutely required is a DNS registration for forums.mysite.com,
otherwise no one will be able to reach the site. Once that's in place
along with a connector configured for port 80 rather than 8080,
deploying the forums webapp as ROOT is all that's required - no
programming necessary.
- 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.
---------------------------------------------------------------------
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
Re: subdomain name redirect to different context path
Posted by Rashmi Rubdi <ra...@gmail.com>.
On 5/26/07, Pid <p...@pidster.com> wrote:
> Rashmi Rubdi wrote:
> > On 5/26/07, Ran <ra...@gmail.com> wrote:
> >> Hi all,
> >> I would like to point 'forums.mysite.com' to 'www.mysite.com:8080/forums'
> >> How could I do that with tomcat conf ? or I need to match the
> >> requested url
> >> in a redirect servlet ? or is it even a DNS zone file question ?
> >
> > You could write a redirect javax.servlet.Filter
> >
> >> Thanks,
> >> ran
> >>
>
> forums.mysite.com = forums.mysite.com:80
>
> Configure an HTTP connector to listen on 80, (rather than 8080),
> then configure a virtualhost for 'forums.mysite.com', all of which is
> assuming you've got a DNS record for this subdomain that points to your
> server.
>
> You then need to deploy the 'forums' web application as the ROOT*
> context to make it work without a subdirectory.
I think he wants to redirect or forward all requests from
'forums.mysite.com' to 'www.mysite.com:8080/forums'
in that case wouldn't he be setting up a Filter that redirects or
forwards a request from forums.mysite.com to
www.mysite.com:8080/forums ?
>
> * Case is important, lookup the docs.
>
>
> p
>
>
>
>
> > Regards
> > Rashmi
---------------------------------------------------------------------
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
Re: subdomain name redirect to different context path
Posted by Pid <p...@pidster.com>.
Rashmi Rubdi wrote:
> On 5/26/07, Ran <ra...@gmail.com> wrote:
>> Hi all,
>> I would like to point 'forums.mysite.com' to 'www.mysite.com:8080/forums'
>> How could I do that with tomcat conf ? or I need to match the
>> requested url
>> in a redirect servlet ? or is it even a DNS zone file question ?
>
> You could write a redirect javax.servlet.Filter
>
>> Thanks,
>> ran
>>
forums.mysite.com = forums.mysite.com:80
Configure an HTTP connector to listen on 80, (rather than 8080),
then configure a virtualhost for 'forums.mysite.com', all of which is
assuming you've got a DNS record for this subdomain that points to your
server.
You then need to deploy the 'forums' web application as the ROOT*
context to make it work without a subdirectory.
* Case is important, lookup the docs.
p
> Regards
> Rashmi
>
> ---------------------------------------------------------------------
> 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
>
>
Re: subdomain name redirect to different context path
Posted by Rashmi Rubdi <ra...@gmail.com>.
On 5/26/07, Ran <ra...@gmail.com> wrote:
> Hi all,
> I would like to point 'forums.mysite.com' to 'www.mysite.com:8080/forums'
> How could I do that with tomcat conf ? or I need to match the requested url
> in a redirect servlet ? or is it even a DNS zone file question ?
You could write a redirect javax.servlet.Filter
> Thanks,
> ran
>
Regards
Rashmi
---------------------------------------------------------------------
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