I don't believe that Tomcat 3.2.x supports including virtual host information in the auto-generated mod_jk.conf-auto. However, if you want to give it a try, Tomcat 3.3 does. For details, see: <http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#context_addcust> If you try it, be sure to use Tomcat 3.3's mod_jk and set noRoot="false" on the ApacheConfig element in the server.xml since you are trying to serve a "root" context on the virtual site.
Cheers, Larry > -----Original Message----- > From: Giovanni P. Tirloni [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 02, 2002 2:34 PM > To: [EMAIL PROTECTED] > Subject: Tomcat 3.2.1 and virtual domains > > > Hi, > > I'm trying to set up a virtual domain with tomcat v3.2.1. If I add a > <Context> it works just fine and tomcat adds what it needs to > mod_jk.conf-auto and then I include that in httpd.conf. What's not > working is when I try <Host> like this: > > <Host name="virtualdomain.com"> > <Alias name="www.virtualdomain.com"> > <Context path="" docBase="/path/to/files"/> > </Alias> > </Host> > > Nothing is added in mod_jk.conf-auto, just the contexts I added > outside <Host>. So my 'fix' was to create a index.html with, > > <html><head> > <meta http-equiv="refresh" \ > content="0;url=http://virtualdomain.com/context/index.jsp"> > </head></html> > > and a context in server.xml, > > <Context path"/context" > docBase="/path/to/files/" > crossContext="true" > debug="0" > reloadable="false" > trusted="false"> > </Context> > > Any idea? I'm not used to tomcat (just hosting this) so if you > guys need more information just ask. Thanks in advance. > > -- > Giovanni P. Tirloni > [EMAIL PROTECTED] > BS2 Sistemas para Internet Ltda. +55 44 263 > 6300 (work) > Network Administrator +55 44 9112 > 0693 (mobile) > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>