You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Frank Lalone <fl...@cbd.net> on 2000/12/05 08:07:16 UTC
Virtual Domains
Could somone please help me with Virtual Domains for Tomcat 3.2? I'm
runing Sco Unixware 7.1 , Tomcat 3.2, and Apache 1.3.12.
I am also using all the example and default configurations of that come with
Tomcat3.2
The onlines docs show the configuration for virtual domains to look like
this?
######################################################################
# Apache Tomcat Virtual Hosts Sample Configuration #
######################################################################
LoadModule jserv_module modules/ApacheModuleJServ.dll
<IfModule mod_jserv.c>
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServDefaultHost localhost
ApJServDefaultPort 8007
# 1 Creating an Apache virtual host configuration
NameVirtualHost 9.148.16.139
# 2 Mounting the first virtual host
<VirtualHost 9.148.16.139>
ServerName www.vhost1.com
ApJServMount /examples ajpv12://localhost:8007/examples
</VirtualHost>
# 3 Mounting the second virtual host
<VirtualHost 9.148.16.139>
ServerName www.vhost2.com
ApJServMount /examples ajpv12://localhost:8009/examples
</VirtualHost>
</IfModule>
What about the Context mapping for /examples above ?? This outline did not
show any. Would I do the context mapping before or after the above Virtual
Host configurations?
This is what my /examples context mapping looks, it is the default Tomcat
configuration in the tomcat-apache.conf that I have not touched, my
question here is, if I still havae to include this, do I change the way in
which this was done when using virtual host? Or does it remain this same?
Alias /examples "/home/flalone/jakarta-tomcat-3.2/webapps/examples"
<Directory "/home/flalone/jakarta-tomcat-3.2/webapps/examples">
Options Indexes FollowSymLinks
</Directory>
ApJServMount /examples/servlet /examples
<Location "/examples/WEB-INF/">
AllowOverride None
deny from all
</Location>
<Location "/examples/META-INF/">
AllowOverride None
deny from all
</Location>
Thank You Very Much
Frank LaLone