tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rashmi Rubdi" <rashmi....@gmail.com>
Subject Re: subdomain name redirect to different context path
Date Sun, 27 May 2007 03:28:14 GMT
On 5/26/07, Pid <p@pidster.com> wrote:
> Rashmi Rubdi wrote:
> > On 5/26/07, Ran <ran256@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


Mime
View raw message