Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 77470 invoked from network); 11 Feb 2003 18:32:08 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Feb 2003 18:32:08 -0000 Received: (qmail 11719 invoked by uid 97); 11 Feb 2003 18:33:41 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 11712 invoked from network); 11 Feb 2003 18:33:41 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 11 Feb 2003 18:33:41 -0000 Received: (qmail 75400 invoked by uid 500); 11 Feb 2003 18:31:39 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 75319 invoked from network); 11 Feb 2003 18:31:38 -0000 Received: from unknown (HELO imap.philstone.com) (206.117.14.94) by daedalus.apache.org with SMTP; 11 Feb 2003 18:31:38 -0000 Received: (qmail 26436 invoked from network); 11 Feb 2003 18:01:38 -0000 Received: from unknown (HELO rippleimpact.com) (192.168.1.35) by 0 with SMTP; 11 Feb 2003 18:01:38 -0000 Message-ID: <3E49418D.1000600@rippleimpact.com> Date: Tue, 11 Feb 2003 10:31:41 -0800 From: Sangam Dash User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc3) Gecko/20020523 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Virtual Hosting Tomcat References: <3E4856CA.7060109@rippleimpact.com> <3E485EF6.5020106@galatea.com> <3E486632.7020205@rippleimpact.com> <3E486D17.5060101@galatea.com> <03e601c2d191$8eaf4730$6500000a@loki> Content-Type: multipart/alternative; boundary="------------000700090204060306050205" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------000700090204060306050205 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi i added something like you said to the hosts file 127.0.0.1 rippleimpact then if i give rippleimpact:8080 it works thanks a lot but then i added this to the server.xml file is there something wrong with this ? tomcat doesnt start now... do you have any idea why its doing that? i dont find any error showing in the logs folder? please help thanks sangam dash Sean Dockery wrote: >I have done this in the past. Here's what you can do... > >Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on my >Windows 2000 machine--your location may be different) and add the following >lines to the end of the file... > >127.0.0.1 alpha >127.0.0.1 gamma >127.0.0.1 omega > >For each Host.name attribute in your server.xml, set it to a machine name. >Like this... > > > ... > > > > ... > > > > ... > > >Then you should be able to access your local machine using different names >like this... > >http://alpha:8080/ >http://gamma:8080/ >http://omega:8080/ > >Good luck. > >Sean Dockery >sean@sbdconsultants.com >Certified Java Web Component Developer >Certified Delphi Programmer >SBD Consultants >http://www.sbdconsultants.com > >----- Original Message ----- >From: "Lajos" >To: "Tomcat Users List" >Sent: Monday, February 10, 2003 20:25 >Subject: Re: Virtual Hosting Tomcat > > > > >>Ouch, windows. I'm not too sure - maybe someone else can provide the >>info. On older versions, you could edit some file like lmhosts ... >> >>I like fronting Tomcat with Apache for security reasons, but I still use >>virtual hosts in Tomcat. I have no idea why you are running out of >>memory - how much RAM do you have? It may be due to your applications >>more than Tomcat itself. >> >>Regards, >> >>Lajos >> >> >>Sangam Dash wrote: >> >> >>>Hi >>> >>>Thanks for the mail. >>>But do you know how to do that on windows machine? >>>The other thing is that when i add this one to the server.xml file the >>>tomcat runs out of memory and it gives premature end of file error >>>sometimes. :-[ >>>Is it better to have apache and tomcat both configured for this kind of >>>situations? :-\ >>>Thanks a lot >>>Sangam Dash :-) >>>Lajos wrote: >>> >>> >>> >>>>Hi Sangam - >>>> >>>>Looks like the examples from my FlashGuide ;) What doesn't work? One >>>>thing that you must make sure is that the values of the name attribute >>>>of the resolve to your machine. You can do this via your >>>>machine's DNS configuration. In the example below, mydomain0.com, >>>>mydomain1.com and mydomain2.com must resolve to the same machine. If >>>>not, the example won't work. >>>> >>>>Regards, >>>> >>>>Lajos >>>> >>>> >>>>Sangam Dash wrote: >>>> >>>> >>>> >>>>>Hi >>>>> >>>>>I am using tomcat for my websites. >>>>>I am not using apache. >>>>>I need to do have two websites running from the same machine with the >>>>>same tomcat instance. >>>>>i didnt get any help on the net as everything for virtual hosting is >>>>>with apache and tomcat combination. >>>>>is it possible to server two different websites from same machine >>>>>using only tomcat? >>>>>please help me out >>>>> >>>>>I tried the following >>>>>but it doesnt work >>>>> >>>>>added this following to the server.xml file >>>>>>>>>unpackWARs="true"> >>>>> >>>>directory="logs" prefix="mydomain0." suffix=".log" timestamp="true"/> >>>>> >>>> >>>>> >reloadable="true"/> > > >>>>> >>>>reloadable="true"/> >>>>> >>>>> >>>>unpackWARs="true"> >>>>> >>>>directory="logs" prefix="mydomain1." suffix=".log" timestamp="true"/> >>>>> >>>> >>>>> >reloadable="true"/> > > >>>>> >>>>reloadable="true"/> >>>>> >>>>> >>>>unpackWARs="true"> >>>>> >>>>directory="logs" prefix="mydomain2." suffix=".log" timestamp="true"/> >>>>> >>>> >>>>> >reloadable="true"/> > > >>>>> >>>>reloadable="true"/> >>>>> i appreciate any kind of help ... >>>>>i am using tomcat 4.1.12 >>>>> >>>>>thanks a lot >>>>>sangam dash >>>>> >>>>> >>>>>--------------------------------------------------------------------- >>>>>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 >>> >>> >>> >>> >>-- >> >> >> >> Lajos Moczar >> ---------------------------------------- >> Open Source Support, Consulting and Training >> ---------------------------------------- >> Cocoon Developer's Handbook >> (www.amazon.com/exec/obidos/tg/detail/-/0672322579) >> >> _ _____ >> / \ / >> /___\ / >> / \ /____ >> >> http://www.galatea.com -- powered by AzSSL >> >> >>--------------------------------------------------------------------- >>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 > > > --------------000700090204060306050205--