You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by bu...@wave-computer.de on 2002/07/03 17:44:22 UTC
VirtualHost
Hi,
I want like to do some nasty VirtualHosting which I can't get to run.
I have written a web-application which gets it's internal configuration
values out of an XML-File we specified. So, for different
applications, I can use the same /WEB-INF/classes for all my
applications, the only thing that changes is a parameter in the
accompanying web.xml
So I made a directory structure like this:
/opt/myshop/lib/shop/classes/com/bla/....
cd /usr/local/tomcat/webapp
mkdir host1
cd host1
mkdir WEB-INF
cd WEB-INF
ln -s /opt/myshop/lib/shop/classes/ ./classes
and the same for host2, host3 and so on... so all /classes are
symbolic linx to the same Classpath. I need this so every
application really loads its own customized set of classes.
Now I have two virtual-hosts in Apache:
<VirtualHost my.domain.com>
JkMount /host1/* ajp13
</VirtualHost>
<VirtualHost my.second.com>
JkMount /host2/* ajp13
</VirtualHost>
This would work fine. But now I want that both Mount-points are
called "host" rather than "hostN"
This would mean I have just to go to my webapp directory and
mkdir host
put my symbolic link into the WEB-INF and edit the web.xml so it
contains a <Host> - Tags around each <Context> ... restarting
tomcat and apache and calling to /my.domain.com/shop/ will start
the appropriate Web-application and I can see that it initializes, but
as soon as that application has to load other classes, everything
fails. I didn't had this problem without the <Host> Tag around...
Any Ideas would be highly appreciated !!!
Regards
Danny
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>