You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike Rixford <mr...@SeeBeyond.com> on 2002/12/30 18:30:44 UTC
Virtual Hosting with Tomcat
Hi there,
I need to setup virtual hosting with Tomcat. We are not running the
full Apache server, just Tomcat and its web piece. Can this be done?
Everything I have found so far refers to Apache not Tomcat on its own.
Any help would be greatly appreciated.
Thanks,
Mike
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Virtual Hosting with Tomcat
Posted by Robert Abbate <co...@ectisp.net>.
I'd say to just send requests directly to Tomcat on it's port..usually 8180
or 8080
http://yoursite.com:8180
then edit the server.xml file to point to where you want it to serve your
webpages. Here's an example config:
<Host name="yoursite.com">
<Context path="" docBase="/home/mydirectory/public_html" debug="0"/>
<Alias>www.yoursite.com</Alias>
</Host>
you'll put that in your server.xml file in between:
<Service name="Tomcat-Standalone">
<!-- Define the top level container in our container hierarchy -->
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Host name="yoursite.com">
<Context path="" docBase="/home/mydirectory/public_html" debug="0"/>
<Alias>www.yoursite.com</Alias>
</Host>
</Engine>
</Service>
-----Original Message-----
From: Mike Rixford [mailto:mrixford@SeeBeyond.com]
Sent: Monday, December 30, 2002 11:31 AM
To: Tomcat Users List
Subject: Virtual Hosting with Tomcat
Hi there,
I need to setup virtual hosting with Tomcat. We are not running the
full Apache server, just Tomcat and its web piece. Can this be done?
Everything I have found so far refers to Apache not Tomcat on its own.
Any help would be greatly appreciated.
Thanks,
Mike
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>