> From: MB [mailto:digital.disc...@gmail.com] > Subject: basic 2 virtual hosts configuration > > to deploy 2 virtual hosts in Tomcat 5.5.29 (no Apache) what more than > the server.xml file below and a context.xml per each host in Catalina > do you need to set up?
Nothing, but you must do it correctly. > Where do I set path, like for "/"? You don't set the path attribute - in almost all cases it is illegal (and "/" is never correct, under any circumstances - read the doc). > <Engine name="Catalina" defaultHost="kron"> > <Realm className="org.apache.catalina.realm.UserDatabaseRealm" > resourceName="UserDatabase" /> > <Host name="medpsy" appBase="/home/webbplatser/medpsy.no" /> > <Host name="kron" appBase="/home/webbplatser/kron.no" /> > </Engine> The above looks ok. > Fragment context settings in /Catalina/kron/ROOT.xml (similar > for the other site: > > docBase="/home/webbplatser/kron.no/ROOT" > path="/" Take out the docBase and path attributes; they're not allowed here. The path is derived from the name of the .xml file, and the webapp is located in the <Host> appBase, so docBase must not be used. > workDir="work/Catalina/kron/_"> Remove the workDir attribute, since you've done nothing but specify the default. > <Listener className="org.apache.catalina.startup.TldConfig"/> Why have you declared the above? Where in the doc does it say you should do that? > GUIDES? It's all in the docs: http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Don't forget to look in the Tomcat logs for deployment problems. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org