Hi there !

Which connectro are you using? If it's mod_jk, you can use the autoconf 
feature, so you don't have to worry about the virtual host configuration in 
httpd.conf.

Just add

Include <path to tomcat>/conf/auto/mod_jk.conf

to httpd.conf and something like

  <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" 
jkDebug="info" modJk="/opt/apache2/modules/mod_jk.so" />

to the "Server" section of your server.xml file and something like

 <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" 
append="true" forwardAll="true" noRoot="false" jkDebug="info" />

to the "Host" section of your server.xml file

You probably have to adjust the parameters for the "Listener" directive, for a 
description of the parameters have a look at

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html

It's for tomcat 3.3, but I am using 4.0.4 and it's still useful.

Now, everytime you start tomcat, the file
<path to tomcat>/conf/auto/mod_jk.conf
will be created and includes the neccessary configuration for apache

Ciao,                           Branko.




Am Donnerstag, 5. September 2002 08:16 schrieb Dionisio Ruiz de Zarate:
> I know how i must to configure the virtual hosts in apache but in the
> tomcat server.xml i don't know.
>
> 1.- can any body send me one sample?
> 2.- in the apache httpd.conf file, in the virtual host  description i have
> the normal virtual host description but for the interaction with tomcat,
> must i add some lines? which lines are these?(for the integration with
> tomcat)
>
> i am running in one linux platform (SuSE 8).
> thanks



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to