Using the Admin application, click on the service (Generally, "Service (Catalina)"). From the service actions dropdown, select the option to create a new host.
-----Original Message----- From: 29djeo [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 8:56 AM To: George Sexton Cc: [EMAIL PROTECTED] Subject: RE: RE: virtual hosting? anyone succeed? 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 <[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED] 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 > <[EMAIL PROTECTED]>> 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:[EMAIL PROTECTED]> > Sent: Saturday, December 20, 2003 11:34 AM> To: > [EMAIL PROTECTED]> 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" > maxThreads="150" minSpareThreads="25"> maxSpareThreads="75" > enableLookups="false" redirectPort="8443"> acceptCount="100" > debug="0" connectionTimeout="20000"> disableUploadTimeout="true" > />> <Connector port="8009" enableLookups="false" > 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 > className="org.apache.catalina.realm.UserDatabaseRealm"> debug="0" > resourceName="UserDatabase"/>> <Host name="localhost" debug="0" > 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" > appBase="webapps"> unpackWARs="true">> > <Alias>www.mydomain1.com</Alias>> <Logger > className="org.apache.catalina.logger.FileLogger"> directory="logs" > prefix="mydomain1." suffix=".log" timestamp="true"/>> <Context > path="" docBase="mydomain1" debug="0"> > reloadable="true"/>> </Host>> <Host > name="mydomain2.com" debug="0" appBase="webapps"> > unpackWARs="true">> > <Alias>www.mydomain2.com</Alias>> <Logger > className="org.apache.catalina.logger.FileLogger"> directory="logs" > prefix="mydomain2." suffix=".log" timestamp="true"/>> <Context > path="" docBase="mydomain2" debug="0"> > reloadable="true"/>> </Host>> </Engine>> > </Service>-------Original > Message------- -------Original Message------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]