You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dola Woolfe <do...@yahoo.com> on 2005/04/25 23:30:36 UTC

Virtual hosts

Hi,

Running TC5.5 as a stand-alone.
I've been reading about the HOST element, and i see
that it can make mysite.com and www.mysite.com go to
the same place. I apologize if I put it in a
simplistic way.

But can it make "www.mysite.com" be forwarded to
"www.mysite.com/myapp"?

Many thanks in advance!

Dola


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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


Re: Virtual hosts

Posted by Pete Stevens <pe...@ex-parrot.com>.
On Mon, 25 Apr 2005, Dola Woolfe wrote:

> Hi,
>
> Running TC5.5 as a stand-alone.
> I've been reading about the HOST element, and i see
> that it can make mysite.com and www.mysite.com go to
> the same place. I apologize if I put it in a
> simplistic way.

Here's a simple guide to virtual hosts & aliases for the simplest environment
where Tomcat serves all traffic

http://www.ex-parrot.com/~pete/tomcat-vhost.html

Yours,

Pete Stevens

--
Pete Stevens
pete@ex-parrot.com
http://www.ex-parrot.com/~pete/

 "Many religions have a belief that if you do not belong to that religion, you
   will go to hell. The number of these religions is greater than one, and, as
        someone cannot belong to more than one religion, all souls go to hell."

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


RE: Virtual hosts

Posted by Fritz Schneider <Fr...@Peacham.HomeIP.net>.
Dola,

The simplest way is to have a welcome page such as index.html that redirects
the request. It would look like this:

<html>
<head>
<META http-equiv="refresh" content="0;URL=http://www.mysite.com/myapp">
<title>Redirect to Myapp</title>
</head>
<body/>
</html>

Fritz

-----Original Message-----
From: Dola Woolfe [mailto:dolachin@yahoo.com] 
Sent: Monday, April 25, 2005 2:31 PM
To: Tom Cat
Subject: Virtual hosts

Hi,

Running TC5.5 as a stand-alone.
I've been reading about the HOST element, and i see
that it can make mysite.com and www.mysite.com go to
the same place. I apologize if I put it in a
simplistic way.

But can it make "www.mysite.com" be forwarded to
"www.mysite.com/myapp"?

Many thanks in advance!

Dola


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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


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