tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Janner" <Jeffrey.Jan...@PolyDyne.com>
Subject RE: Virtual host configuration - best practise?
Date Mon, 21 Sep 2009 15:45:57 GMT
Someone correct me if I'm wrong, but just changing server.xml does not
require an "immediate" restart of Apache, correct?
Hepabolu could use the host-manager to add his hosts on-the-fly, and
then add the necessary changes to the server.xml so that the next time
he does restart his server/Tomcat, the new hosts will be there.
I run a similar setup with quite similar requirements, and often modify
the server.xml without immediate restarts.  When I have a new host, I
use a "test" tomcat instance to set up and test the new config, then
copy the changes to the eventual live instance's server.xml, leaving
both running until I can get a window to make the switch.
I had tried the host-manager app at one time, but abandoned it since it
didn't update the server.xml file (plus I had some more esoteric config
issues at the time). If I was going to be manually updating files
anyway, I preferred a more obvious method.

-----Original Message-----
From: George Sexton [mailto:georges@mhsoftware.com] 
Sent: Friday, September 18, 2009 2:15 PM
To: 'Tomcat Users List'
Subject: RE: Virtual host configuration - best practise?


> -----Original Message-----
> From: hepabolu [mailto:hepabolu@gmail.com]
> Sent: Friday, September 18, 2009 1:06 PM
> To: users@tomcat.apache.org
> Subject: RE: Virtual host configuration - best practise?
> 
> 
> 
> 
> George Sexton wrote:
> >
> >
> > Another way of getting there is scripting commands to the Tomcat
Host
> > Manager application. You can deploy the new hosts on the fly. It's
> pretty
> > straight forward.
> >
> > The downside to this approach, and probably JMX as well is that it
> doesn't
> > update server.xml and you'll have to create a startup routine that
> > generates
> > a new server.xml with the virtual hosts on the fly.
> >
> >
> 
> And a new server.xml requires a restart of Tomcat? Which would
> basically be
> a variation of my current setup. Correct?
> 
> Bye, Helma


No. Use the host manager to deploy/undeploy virtual hosts on the fly.
When
you re-start tomcat, have a program create the server.xml so that all of
the
one's you deployed using the host manager are represented.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585



*******************************  NOTICE  *********************************
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.


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


Mime
View raw message