tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <Larry.Isa...@sas.com>
Subject RE: Tomcat 3.2.1 and virtual domains
Date Wed, 02 Jan 2002 19:52:25 GMT
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:tirloni@bs2.com.br]
> Sent: Wednesday, January 02, 2002 2:34 PM
> To: tomcat-user@jakarta.apache.org
> 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                                  
> tirloni@bs2.com.br
>  BS2 Sistemas para Internet Ltda.              +55 44  263 
> 6300   (work)
>  Network Administrator                         +55 44 9112 
> 0693 (mobile)
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message