Hi Glen,

I don't know if it makes a difference or not, but I've always had the same
host names in my Apache VHost config and my server.xml file. In your config,
you're using an IP Address in Apache and a name in server.xml. You might try
using the IP in server.xml instead.

Nothing else really jumps out at me. For an example of my config, search the
mail archive at:

http://mikal.org/interests/java/tomcat/index.jsp

Look for Virtual Host or my name.

Thanks,
--jeff

----- Original Message -----
From: "Glen Eustace" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 19, 2001 6:08 PM
Subject: Re: Setting up Virtual Hosts


> As requested, here are the respective configs. I still think there is
> something fundamental that I have missed. :-)
>
>
> Apache.conf
> NB: I have tried with and without the explicit KnMount in the VirtualHost
> definition.
>
> #
> ------------------------------------------------------------------------
> # mod jk configuration
> #
> ------------------------------------------------------------------------
> <IfModule mod_jk.c>
>    JkWorkersFile   /usr/local/tomcat/conf/workers.properties
>    JkLogFile       /usr/local/tomcat/logs/mod_jk.log
>    JkLogLevel      error
>    JkMount         /*.jsp ajp13
>    JkMount         /servlet/* ajp13
> </IfModule>
>
>
> <VirtualHost 210.55.214.169>
>    ServerAdmin [EMAIL PROTECTED]
>    ServerName www-dev.godzone.net.nz
>    DocumentRoot /home/GodZone
>    SetEnv isDevelopment 1
>
>    RewriteEngine on
>    RewriteRule (^.+)/gzlogo\.gif$ $1/gzlogo_dev.gif [P]
>    JkMount         /*.jsp ajp13
> </VirtualHost>
>
> I added the following definition to server.xml
>
>         <Host name="www-dev.godzone.net.nz" >
>            <Context path=""
>                     debug="2"
>                     docBase="/home/GodZone" />
>         </Host>
>
> I get the following in the tomcat.log
>
> 2001-05-20 01:05:29 - ContextManager: Adding context Ctx( /examples )
> 2001-05-20 01:05:29 - ContextManager: Adding context Ctx( /admin )
> 2001-05-20 01:05:29 - Ctx(  ): Set debug to 2
> 2001-05-20 01:05:29 - ContextManager: Adding context Ctx(
> www-dev.godzone.net.nz: )
> 2001-05-20 01:05:29 - ContextManager: Adding context Ctx(  )
> 2001-05-20 01:05:29 - ContextManager: Adding context Ctx( /test )
> 2001-05-20 01:05:29 - ContextManager: Adding context Ctx( /GodZone )
> 2001-05-20 01:05:30 - Ctx( www-dev.godzone.net.nz: ): XmlReader - init
> /home/GodZone
> 2001-05-20 01:05:30 - Ctx( www-dev.godzone.net.nz: ): Loading -2147483646
> jsp
> 2001-05-20 01:05:30 - PoolTcpConnector: Starting Ajp12ConnectionHandler
> on 8007
> 2001-05-20 01:05:31 - PoolTcpConnector: Starting Ajp13ConnectionHandler
> on 8009
> 2001-05-20 01:05:57 - Ctx( www-dev.godzone.net.nz: ): 404 R(  +
> /dates.jsp + null) JSP file not found
>
> when I try to access http://www-dev.godzone.net.nz/dates.jsp
>
> which definitinetly exists
> T2.(agree-6)conf: la /home/GodZone/date.jsp
> -rw-r--r--    1 geustace gzsys        1043 May 17 19:25
> /home/GodZone/date.jsp
>

Reply via email to