tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Virtual host configuration - best practise?
Date Fri, 18 Sep 2009 21:26:00 GMT
-----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.

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqz+ugACgkQ9CaO5/Lv0PCLEwCgjFctU2trBsHOOyapm+IlbdSC
Yt0AmgMGU+MzstX2uV4xta7DAdCnI+01
=rPtO
-----END PGP SIGNATURE-----

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


Mime
View raw message