tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <>
Subject Re: A question about redirecton from to
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  - might 
do it for you.


Anand HS wrote:
> Hi,
> I have a requirement where I need to configure my Tomcat server to accept
> any requests to and internally see what the value of
> 'users ' is and then serve the content from that user subdirectory on
> For eg, if the URL is my tomcat should internally map
> this to 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:
For additional commands, e-mail:

View raw message