Larry, Thanks a ton for the clarification! If I upgrade to 3.3.x and want every webapp inside the webapps folder to automatically be deployed for every virtual host, how do I specify the host attribute?
Do I have to add <AutoWebApp dir="webapps" host="www.domain.com" /> to server.xml for each vhost, or am I missing something still? I read the documentation and am still somewhat confused... Brandon -----Original Message----- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 9:38 AM To: 'Tomcat Users List' Subject: RE: Can all virtual hosts use a webapp that is put inside $tomcat_home$/webapps? I don't believe Tomcat 3.2.x supports auto-serving the "webapps" directory for hosts other than the default host. However, this is supported in Tomcat 3.3.x. The <AutoWebApp ...> element in the server.xml file supports specifying the directory and host, e.g.: <AutoWebApp dir="webapps" host="DEFAULT" /> <AutoWebApp dir="webapps" host="www.domain.com" /> For details see: <http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#AutoWebApp> Cheers, Larry > -----Original Message----- > From: Brandon Cruz [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 14, 2002 7:58 PM > To: Tomcat Users List > Subject: RE: Can all virtual hosts use a webapp that is put > inside $tomcat_home$/webapps? > > > Everyone must have gone home...I'm really hoping that someone > can help with > this, it seems like it would be a common problem. > > Tomcat 3.2.x will not find files inside a webapp unless that webapp is > specifically declared inside each virtual host in the > server.xml file. I > want to be able to put all my webapps inside > $tomcat_home$/webapps so that > they will automatically be found. Since we have many virtual > hosts, each > using several different webapps, is there any way to avoid > the "myWebapp" > context entry below for hundreds of diffent virtual hosts? > > > <Host name="www.domain.com"> > <Context path="" > docBase="/usr/local/vhosts/domain.com/httpdocs"> > crossContext="false" > debug="0" > reloadable="true" > </Context> > > <Context path="/myWebapp" > docBase="/usr/local/tomcat/webapps/myWebapp" > crossContext="true" > debug="0" > reloadable="true" > trusted="false"> > </Context> > </Host> > > > > Please help! We've been banging our heads on this all day! > > Thanks > > Brandon > > > -----Original Message----- > From: Brandon Cruz [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 14, 2002 5:06 PM > To: Tomcat Users List > Subject: Can all virtual hosts use a webapp that is put inside > $tomcat_home$/webapps? > > > I have many virtual hosts. Right now, they all access a > webapp because I > have set the context to that webapp inside their <Host> tag > in server.xml. > I would like to change it so that all I have to do is put the > webapp inside > $tomcat_home$/webapps. Is this possible so that I can avoid > the redundant > entries in server.xml, or does virtual hosting cause a > problem with this? I > am using tomcat 3.2.4, thanks in advance for any help! > > > Brandon > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: > <mailto:tomcat-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
