You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Matt Wiseley <wi...@runbox.com> on 2003/05/14 23:48:11 UTC

adding hosts without restarting

I have to believe this has been asked a million times, but I can find no solution in the archives. I am running 4.12 stand-alone and need to be able to add virtual hosts (new individual sites with a new host name and root context) on the fly without restarting tomcat. I know that this should be technically possible because the web admin tool has this capability. Unfortunately, I'm not familiar with Struts, so that source code didn't help me much. 

I understand that contexts within an existing host can be added in numerous ways, but I need to add new hosts. 

Has anyone implemented a method of doing this, say from Java code or from a command line (Ant)? It would greatly help me out. 

Thanks in advance,
Matt


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


Re: adding hosts without restarting

Posted by Jacob Kjome <ho...@visi.com>.
This will almost certainly require a restart.  Did you read Tomcat's docs 
thoroughly?  If not, that is where to look.

Oh, well there is one way.  You can start completely separate instance of 
Tomcat on different ports.  You can use CATALINA_BASE to specify each the 
location of the separate instance(s).  This allows you to have a base 
install of Tomcat, but provide completely separate configurations and 
appBase's per Tomcat instance.  Is that what you are looking for?

Jake

At 09:48 PM 5/14/2003 +0000, you wrote:
>I have to believe this has been asked a million times, but I can find no 
>solution in the archives. I am running 4.12 stand-alone and need to be 
>able to add virtual hosts (new individual sites with a new host name and 
>root context) on the fly without restarting tomcat. I know that this 
>should be technically possible because the web admin tool has this 
>capability. Unfortunately, I'm not familiar with Struts, so that source 
>code didn't help me much.
>
>I understand that contexts within an existing host can be added in 
>numerous ways, but I need to add new hosts.
>
>Has anyone implemented a method of doing this, say from Java code or from 
>a command line (Ant)? It would greatly help me out.
>
>Thanks in advance,
>Matt
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org