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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Manager servlet to manage virtual hosts
You can do this with ant very nicely project name=Learning default=reloadContext basedir=. target name=reloadContext get dest=stop.txt src=http://localhost:8080/manager/stop?path=/Learning; username=adminUserName password=adminPassword/ loadfile property=STOPOUTPUT srcfile=stop.txt/loadfile echo${STOPOUTPUT}/echo delete file=stop.txt/delete get dest=start.txt src=http://localhost:8080/manager/start?path=/Learning; username=adminUserNAme password=adminPassword/ loadfile property=STARTOUTPUT srcfile=start.txt/loadfile echo${STARTOUTPUT}/echo delete file=start.txt/delete /target /project 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manager servlet to manage virtual hosts
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 project name=Learning default=reloadContext basedir=. target name=reloadContext get dest=stop.txt src=http://localhost:8080/manager/stop?path=/Learning; username=adminUserName password=adminPassword/ loadfile property=STOPOUTPUT srcfile=stop.txt/loadfile echo${STOPOUTPUT}/echo delete file=stop.txt/delete get dest=start.txt src=http://localhost:8080/manager/start?path=/Learning; username=adminUserNAme password=adminPassword/ loadfile property=STARTOUTPUT srcfile=start.txt/loadfile echo${STARTOUTPUT}/echo delete file=start.txt/delete /target /project 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Manager servlet to manage virtual hosts
You can copy the manager.xml ( context definition ) from the www.myserver.com:8080/ webapps directory to the virtualhost webapps directory and restart tomcat ... Then it will be available ... Regards Guru -Original Message- From: Manik Surtani [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 14:05 To: Tomcat Users List Subject: Re: Manager servlet to manage virtual hosts 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 project name=Learning default=reloadContext basedir=. target name=reloadContext get dest=stop.txt src=http://localhost:8080/manager/stop?path=/Learning; username=adminUserName password=adminPassword/ loadfile property=STOPOUTPUT srcfile=stop.txt/loadfile echo${STOPOUTPUT}/echo delete file=stop.txt/delete get dest=start.txt src=http://localhost:8080/manager/start?path=/Learning; username=adminUserNAme password=adminPassword/ loadfile property=STARTOUTPUT srcfile=start.txt/loadfile echo${STARTOUTPUT}/echo delete file=start.txt/delete /target /project 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]