> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: problem with getcontext and context.xml > > Hmm i think i understand a little so each context need to > have it's own ROOT directory
No; perhaps you don't understand that context is synonomous with webapp, not host. Each <Host> should have its own appBase and ROOT context, unless you want the same apps running on both <Host>s. ROOT is simply the default context; there can be many contexts (webapps) for each <Host>. > So i have create like you told two things : > <Host name="default.mydomain.com > > and > <Host name="vhost1.mydomain.com" debug="0" > appBase="/usr/local/tomcat/webapps/myaccount1" > and i have /usr/local/tomcat/webapps/ROOT/META-INF/context.xml > and /usr/local/tomcat/webapps/test/ROOT/META-INF/context.xml No, you're not paying attention to what's in the messages. To repeat from the last time: You could do that, but it's an extra directory layer that you don't really need. I'd suggest this instead: appBase="/usr/local/tomcat/webapps1" appBase="/usr/local/tomcat/webapps2" and put your default app for each host in: /usr/local/tomcat/webapps1/ROOT /usr/local/tomcat/webapps2/ROOT where one <Host>'s appBase points to webapps1, and the other to webapps2. Note that the names "myaccount1" and "myaccount2" serve no purpose and have been removed. By the way, you don't need a <Host> entry for default.mydomain.com, unless you have a separate set of apps for default.mydomain.com; you could simply declare vhost1.mydomain.com or vhost2.mydomain.com as the defaultHost for your engine. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]