It's something like this:
server.xml:
<Host name="www.domain.com">
<Context path="" docBase="/home/someone/web/app" debug="0"/>
</Host>
<Host name="domain.com">
<Context path="" docBase="/home/someone/web/app" debug="0"/>
</Host>
httpd.conf:
<VirtualHost multihost.maindomain.com:80>
ServerName www.domain.com
ServerAlias domain.com
DocumentRoot /home/someone/web/app
<Directory "/home/someone/web/app">
Options ExecCGI Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig FileInfo Indexes Limit Options
Order allow,deny
Allow from all
</Directory>
<IfModule mod_jk.c>
JkWorkersFile /opt/tomcat/conf/workers.properties
JkLogFile /opt/tomcat/logs/mod_jk.log
#
# Log level to be used by mod_jk
#
JkLogLevel error
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
</IfModule>
</VirtualHost>
On Sun, 11 Mar 2001, Joshua Lifton wrote:
>
> The "Tomcat-Apache HOWTO" document that comes with the Tomcat 3.2.1 distro
> mentions that there are two different ways to configure Tomcat for virtual
> hosts; one is to use a different Tomcat for each Apache virtual host and
> the other is to use the same Tomcat for each Apache virtual host. In the
> case of the latter, the HOWTO file mentions that Apache's httpd.conf file
> must be configured using the <VirtualHost> directive and gives an example
> of such. In addition, the HOWTO file states that Tomcat's server.xml must
> be configured using the <Host> directive. An example is given for this as
> well, but it is identical to the example given for the <VirtualHost>
> directive in the httpd.conf file. Is this a typo? I checked the
> server.xml file and found a rough sketch of the <Host> directive being
> used for working with virtual hosts, but would like to see a more complete
> example. Anybody have experience with this? If it is a typo, how
> do we go about fixing it? Thanks, josh
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]