> -----Original Message-----
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: Friday, September 18, 2009 3:26 PM
> To: Tomcat Users List
> Subject: Re: Virtual host configuration - best practise?
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> George,
>
> On 9/18/2009 3:15 PM, George Sexton wrote:
> > 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.
>
> It's been demonstrated that you can use the XML parser to include one
> XML file in another file (say, include myhosts.xml from server.xml).
> Given that, you could have a process whereby you update Tomcat
> on-the-fly, but also modify the myhosts.xml file at the same time.
>
> This seems a bit safer, as you're not re-writing server.xml in order to
> add hosts to your configuration. It also means that you don't have to
> remember to save those new hosts somewhere (possibly server.xml)
> because
> the code that does the on-the-fly deployments can also record those
> host
> additions.
>
Chris,
That's actually a pretty neat technique. I think I'll modify my code to do that
as part of my conversion to 6.0.
My tomcat startup script actually re-writes the server.xml on the fly. It
hasn't caused any problems for me but this is still a cleaner approach.
FWIW, I'm running 800+ virtual hosts on 3 servers.
George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org