Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 52711 invoked from network); 27 Jul 2005 13:05:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jul 2005 13:05:08 -0000 Received: (qmail 49272 invoked by uid 500); 27 Jul 2005 13:04:47 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 49255 invoked by uid 500); 27 Jul 2005 13:04:47 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 49242 invoked by uid 99); 27 Jul 2005 13:04:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2005 06:04:47 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [195.92.195.172] (HELO cmailg2.svr.pol.co.uk) (195.92.195.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2005 06:04:39 -0700 Received: from user-7323.lns5-c8.dsl.pol.co.uk ([84.67.188.155] helo=[10.10.10.5]) by cmailg2.svr.pol.co.uk with esmtp (Exim 4.41) id 1DxlaW-0004M1-5z for tomcat-user@jakarta.apache.org; Wed, 27 Jul 2005 14:04:44 +0100 Mime-Version: 1.0 (Apple Message framework v733) In-Reply-To: <1B10C076-B197-445B-8132-F2B0C4C0A342@jboss.org> References: <847757D7E2CCE74FA4D1862A91CF0C3F07D9F684@ukkwd705nts.kwd.uk.fid-intl.com> <1B10C076-B197-445B-8132-F2B0C4C0A342@jboss.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Manik Surtani Subject: Re: Manager servlet to manage virtual hosts Date: Wed, 27 Jul 2005 14:04:41 +0100 To: Tomcat Users List X-Mailer: Apple Mail (2.733) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > Hi there. > > Yeah, this is pretty much what I want, only the problem is: > > www.myserver.com:8080/manager exists, but www.myvh_1.com:8080/ > manager and www.myvh_2.com:8080/manager, etc. does not exist ... > > For some reason the manager servlet is not avbl on my virtual hosts > and the manager on the main host can only manage contexts in that > host. > > Cheers, > Manik > > > On 27 Jul 2005, at 12:59, Raghupathy,Gurumoorthy wrote: > > >> You can do this with ant very nicely >> >> >> >> >> > src="http://localhost:8080/manager/stop?path=/Learning" >> username="adminUserName" password="adminPassword"/> >> > srcfile="stop.txt"> >> ${STOPOUTPUT} >> >> >> > src="http://localhost:8080/manager/start?path=/Learning" >> username="adminUserNAme" password="adminPassword"/> >> > srcfile="start.txt"> >> ${STARTOUTPUT} >> >> >> >> >> >> The only thing you need to change is the >> "http://localhost:8080/manager/stop?path=/Learning" of it ... >> >> So if you want to do for www.manik.com for context "/Learning" >> >> Then it will be http://www.manik.com/manager/stop?path=/Learning and >> >> >> if you want to do for www.guru.com for context "/Learning" >> >> Then it will be http://www.guru.com/manager/stop?path=/Learning >> >> >> Hope you find this useful .... >> >> >> Regards >> Guru >> >> Guru Loves Tocmat and ant :) >> >> Gurumoorthy Raghupathy >> EMFS - Fidelity Investments International >> Regret for the things we did can be tempered by time; it is regret >> for the >> things we did not do that is inconsolable >> >> >> To: tomcat-user@jakarta.apache.org >> Subject: Manager servlet to manage virtual hosts >> >> >> Hi, >> >> I'm running TC 5.0.19 and have 8 virtual hosts on the box. >> >> Each virtual host has a default ("/") context with it's app deployed. >> >> When I access tomcat on it's IP address on port 8080, I get the >> default tomcat root, with access to the admin and manager servlets. >> >> Whenever I access the manager servlet though, I can only administer >> the root host and not contexts within the virtual hosts. >> >> Essentially I need an easy mechanism to reload apps within the >> virtual hosts (wither via cmd line or www interface) without >> restarting tomcat or affecting the deployments on the other virtual >> hosts. >> >> Any ideas on how I can best achieve this? >> >> Thanks. >> Manik >> >> --------------------------------------------------------------------- >> 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 >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org