I had the same objective, went through the same agony and finally got it to
work. Glancing at your conf files I'll hazard the following guess:
The docBase parameters are relative to the root of the host. This example is
for one of my virtual hosts and it works:
Httpd.conf:
<VirtualHost 10.0.1.254>
ServerName www.woteki.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /Library/WebServer/Documents/www
#####
# /wines context
#####
Alias /wines "/Library/WebServer/Documents/www/wines"
<Directory "/Library/WebServer/Documents/www">
Options Indexes FollowSymLinks
</Directory>
# mount all JSP files and /servlet/ uri to Tomcat
JkMount /wines/servlet/* ajp13
JkMount /wines/*.jsp ajp13
<Location "/wines/WEB-INF/">
AllowOverride None
order deny,allow
deny from all
allow from cauchy.woteki.com
</Location>
<Location "/wines/META-INF/">
AllowOverride None
deny from all
</Location>
</VirtualHost>
Server.xml:
<Host name = "www.woteki.com">
<Context path="" docBase = "www"/>
<Context path="/wines" docBase = "www/wines"/>
</Host>
--
Tom Woteki, a.k.a. Dr. Wo
mail to:<[EMAIL PROTECTED]>
202-544-2743 (fax)
http://www.woteki.com/wines <-- a pure Java, Apache-Tomcat web application
running under MacOSX
> Can anyone help?
>
> I've been trying to achieve very simple name based virtual hosting
> with very little luck. I have read the mod_jk documentation but not
> found what I'm looking for. I've also read a vast number of postings
> in this mailing list, but found 99% more questions than answers.
>
>
> I DO NOT want to place things anywhere under $TOMCAT_HOME.
>
> Here are snippets of the various config files, set up as recommended in
> the mod_jk documentation.
>
> from server.xml
> ---------------
>
> <Host name="www.domain1.com">
> <Context path=""
> docBase="/home/www.domain1.com"
> crossContext="true"
> debug="0"
> reloadable="true"
> trusted="false" >
> </Context>
> </Host>
> <Host name="www.domain2.com">
> <Context path=""
> docBase="/home/www.domain2.com"
> crossContext="true"
> debug="0"
> reloadable="true"
> trusted="false" >
> </Context>
> </Host>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]