Mapping different different folders in a webapp to different urls

2006-03-13 Thread Kumar Limbu
Hi Guys,

 

Hi everyone. I am new to this mailing list and I have a configuration
problem.

 

I searched through the web and googled around but I couldn't get a
satisfactory reply. I also went through the mailing list, but I couldn't
come across anything specific to my need.

 

We are about to deploy an application. What we are looking to do is to map
each individual folder within the web application to a different urls.

What I mean by this is, 

For example we have a web application called webapp and within webapp we
have folders like a, b and c. What I would like to know is , how can I map
these folder to urls like a.abc.com , b.abc.com and c.abc.com. Is there any
way to do this? I haven't really been able to find a reasonable solution to
this problem. So if anyone knows how to do it please drop a word.

 

Thank You,

Kumar

 

 



RE: Mapping different different folders in a webapp to different urls

2006-03-13 Thread Kumar Limbu
Hi guys,

Thank you all for your answers. I have not tested the settings yet. I just
replied to acknowledge your replies. I will also reply on how the solution
worked for me in my next post.
Thank you all for the prompt reply.

Thank You,
Kumar
 
Cyberspace Limited
Hong Kong
-Original Message-
From: Per Johnsson [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 13, 2006 7:52 PM
To: Tomcat Users List
Subject: Re: Mapping different different folders in a webapp to different
urls

Hi!

We have managed to do that but with a side effect that Tomcat loads each 
webapp several times. This is an example config.


  


  



I think by setting the webapps folder to a empty dummy folder you could 
get rid of the autoloaded webapps
and only get those you want. I have not tried it out much. I'm looking for 
a nicer solution


  


  



So if someone knows another way of only load the defined context I'm more 
than glad to hear about it.

Regards Per Jonsson



Tim Diggins <[EMAIL PROTECTED]> wrote on 2006-03-13 12:38:59:

> If you are planning to use apache anyway, then you could use mod_rewrite 

> for this (see apache docs on mod_rewrite - but basically rewrite 
> (internally) the "a.abc.com" to "abc.com/a" and connect "abc.com/a" via 
> mod_jk to tomcat "/a" and then tomcat doesn't need to know about the 
> rewrite).
> 
> don't __think__ there is a tomcat way to distribute a webapp across 
> urls, but you __might__ get the same effect by having virtual hosts in 
> tomcat, each with a ROOT webapp, and enabling single-sign-on (to enable 
> the same session across the webapps).
> 
> I've never used single-sign-on, but that's the first thing I'd check, if 

> you want a tomcat-only solution.
> 
> hth Tim
> 
> 
> 
> Kumar Limbu wrote:
> > Hi Guys,
> > 
> > 
> > 
> > Hi everyone. I am new to this mailing list and I have a configuration
> > problem.
> > 
> > 
> > 
> > I searched through the web and googled around but I couldn't get a
> > satisfactory reply. I also went through the mailing list, but I 
couldn't
> > come across anything specific to my need.
> > 
> > 
> > 
> > We are about to deploy an application. What we are looking to do is to 
map
> > each individual folder within the web application to a different urls.
> > 
> > What I mean by this is, 
> > 
> > For example we have a web application called webapp and within webapp 
we
> > have folders like a, b and c. What I would like to know is , how can I 
map
> > these folder to urls like a.abc.com , b.abc.com and c.abc.com. Is 
there any
> > way to do this? I haven't really been able to find a reasonable 
solution to
> > this problem. So if anyone knows how to do it please drop a word.
> > 
> > 
> > 
> > Thank You,
> > 
> > Kumar
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




This e-mail and the information it contains may be privileged and/or
confidential.  It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any
information it contains, is prohibited. 
If you are not an intended recipient, please contact the sender and delete
the material from your computer.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]