You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by amousset <au...@gmail.com> on 2011/04/15 12:02:55 UTC

Redirect from a domain to another (keeping the first one)

Hi guys,

Well, I deployed my war file in Tomcat on my server.
And I've 2 domains on this server. Let's say domain1.com and domain2.com
Well, domain1.com goes to http://my-ip-server:8080/myservlet
So when I access domain1.com, everything is ok (myservlet is displayed)

Now, I have a second domain which is domain2.com and I would like this
domain2.com access
http://my-ip-server:8080/myservlet/blabla/domain2 for example.

So, if I access http://domain2.com/wouhoo and 
http://domain1.com/blabla/domain2/wouhoo
should be the same !!

How can I do that ?

Thanks a lot !!
Aurelien.
-- 
View this message in context: http://old.nabble.com/Redirect-from-a-domain-to-another-%28keeping-the-first-one%29-tp31404362p31404362.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


RE: Redirect from a domain to another (keeping the first one)

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: amousset [mailto:aurelien.mousset@gmail.com] 
> Subject: Redirect from a domain to another (keeping the first one)

> So, if I access http://domain2.com/wouhoo and 
> http://domain1.com/blabla/domain2/wouhoo
> should be the same !!

> How can I do that ?

Try this:
http://www.tuckey.org/urlrewrite/

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org