tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "29djeo" <29d...@michaelstarkie.com>
Subject RE: RE: virtual hosting? anyone succeed?
Date Tue, 06 Jan 2004 15:56:09 GMT


so you have two instances of tomcat running?  Otherwise how do you have two root contexts?


I was thinking of running two tomcats and fronting them with apache as a way to achieve virtual
hosting.  That way I could have seperate jvms handle my servlet requests.

   -------Original Message-------
   > From: George Sexton <gsexton@mhsoftware.com>
   > Subject: RE: RE: virtual hosting? anyone succeed?
   > Sent: 06 Jan 2004 10:32:53
   >
   >  I
   >  didn't. I created virtual hosts. Each virtual host has its own root
   >  context.
   >  
   >  
   >  -----Original Message-----From: 29djeo
   >  [mailto:29djeo@michaelstarkie.com] Sent: Friday, January 02, 2004
   >  3:35 PMTo: George SextonSubject: Re: RE: virtual
   >  hosting? anyone succeed?How did you do this so that
   >  http://www.yourdomain.com will take you to a context named /yourdomain in
   >  webapps and not the ROOT context?-------Original
   >  Message-------> From: George Sexton
   >  <gsexton@mhsoftware.com>> Subject: RE: virtual hosting? anyone
   >  succeed?> Sent: 21 Dec 2003 10:41:58>> I run about 6-8
   >  virtual hosts on one installation. I created them using> the Admin
   >  application and had no problems.> > -----Original
   >  Message-----> From: 29djeo [mailto:29djeo@michaelstarkie.com]>
   >  Sent: Saturday, December 20, 2003 11:34 AM> To:
   >  tomcat-user@jakarta.apache.org> Subject: virtual hosting? anyone
   >  succeed?> > > Has anyone succeeded in getting tomcat
   >  5.0.16 set up for virtual hosting> without using apache as a front
   >  end?> > I'm trying to get one instance of tomcat to serve two
   >  domains on the> same machine.> > I have added two Host
   >  sections to server.xml and I see the following> behavior when I access
   >  the sites from a browser running on the same host> as tomcat:>
   >  > http://localhost:8080 - default context>
   >  http://www.mydomain1.com - blank page> http://www.mydomain2.com - blank
   >  page> http://mydomain1:8080 - correctly runs the mydomain1
   >  context> http://mydomain2:8080 - correctly runs the mydomain2
   >  context> > how do I get www.mydomain1.com and www.mydomain2.com
   >  to show the correct> contexts?> > from another host on my
   >  network the only context I can load is> http://hostname:8080 to see the
   >  default context. All other contexts> like http://www.mydomain1.com and
   >  http://domain1.com:8080 result in an> "action cancelled" from ineternet
   >  explorer.> > Here is an excerpt from server.xml:>
   >  > <Service name="Catalina">> <Connector port="8080"
   &gt;  maxThreads="150" minSpareThreads="25"> maxSpareThreads="75"
   >  enableLookups="false" redirectPort="8443"> acceptCount="100"
   >  debug="0" connectionTimeout="20000"> disableUploadTimeout="true"
   >  />> <Connector port="8009" enableLookups="false"
   &gt;  redirectPort="8443"> debug="0" protocol="AJP/1.3"/>>
   >  <Engine name="Catalina" defaultHost="localhost" debug="0">>
   >  <Logger className="org.apache.catalina.logger.FileLogger">
   >  prefix="catalina_log." suffix=".txt" timestamp="true"/>> <Realm
   &gt;  className="org.apache.catalina.realm.UserDatabaseRealm"> debug="0"
   >  resourceName="UserDatabase"/>> <Host name="localhost" debug="0"
   &gt;  appBase="webapps"> unpackWARs="true" autoDeploy="true"
   >  xmlValidation="false"> xmlNamespaceAware="false">>
   >  <Logger className="org.apache.catalina.logger.FileLogger">
   >  directory="logs" prefix="localhost_log." suffix=".txt"/>>
   >  </Host>> <Host name="mydomain1.com" debug="0"
   &gt;  appBase="webapps"> unpackWARs="true">>
   >  <Alias>www.mydomain1.com</Alias>> <Logger
   &gt;  className="org.apache.catalina.logger.FileLogger"> directory="logs"
   >  prefix="mydomain1." suffix=".log" timestamp="true"/>> <Context
   &gt;  path="" docBase="mydomain1" debug="0">
   >  reloadable="true"/>> </Host>> <Host
   &gt;  name="mydomain2.com" debug="0" appBase="webapps">
   >  unpackWARs="true">>
   >  <Alias>www.mydomain2.com</Alias>> <Logger
   &gt;  className="org.apache.catalina.logger.FileLogger"> directory="logs"
   >  prefix="mydomain2." suffix=".log" timestamp="true"/>> <Context
   &gt;  path="" docBase="mydomain2" debug="0">
   >  reloadable="true"/>> </Host>> </Engine>>
   >  </Service>-------Original
   >  Message-------
   -------Original Message-------



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message