tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: adding vhosts without restarting tomcat from a script and keeping them persistent
Date Sat, 25 Jul 2009 10:18:32 GMT
Mathijs Kwik wrote:
> Hi all,
> 
> I'm using tomcat 6.
> I would like to be able to add vhosts without restarting tomcat.
> I found this ability using the host-manager application that's included.
> But I want to do this from CLI.
> I found ant tasks for the manager application to deploy/undeploy apps
> on-the-fly,
> but I couldn't find something similar for host-manager.
> Is anyone aware of an ant task (or some kind of script) to do this?

Take a look a the web.xml for the host-manager. A number of commands are
available that you can call from a script using HTTP GET requests.

> Also, after restarting tomcat, vhosts added by host-manager are no longer there.
> I don't think this is a problem, I can probably create a vhost through
> host-manager, and still create a configfile for the host so it will
> remain there after restarts.
> 
> I think it's quite a common task to add a new domain with its own app
> to a running server.
As far as I recall, this is not a popular feature request.

> So are there any solutions available?
To save host changes to server.xml? No.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message