tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: A question about redirecton from users.mydomain.com to mydomain.com/users
Date Tue, 03 Mar 2009 11:42:00 GMT
Doable : Yes
Out of the Box: No

You can write a Servlet filter to examine the incoming hostname and 
forward the request with the username prefix. In fact - you might need 
to write it :  UrlRewriteFilter  - http://tuckey.org/urlrewrite/ might 
do it for you.

-Tim

Anand HS wrote:
> Hi,
> I have a requirement where I need to configure my Tomcat server to accept
> any requests to users.mydomain.com and internally see what the value of
> 'users ' is and then serve the content from that user subdirectory on
> www.mydomain.com.
> 
> For eg, if the URL is johndoe.mydomain.com my tomcat should internally map
> this to www.mydomain.com/johndoe and render index.html in johndoe subfolder.
> 
> 
> Is this type of configuration possible in tomcat. ? Or is this possible in
> apache server . ?
> 
> Apologise for posing a question that might have answers in apache server.
> But i put it here as i want to solve this using tomcat only if it can solve
> the problem.
> 
> Thanks,
> Anand
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message