thank you very much for your reply. That was exactly what I needed to know. You saved me a lot of time.
Sincerely
Michael Kastner
staf wagemakers schrieb:
staf wagemakers schrieb:
It has been a while since I've setup apache with tomcat virtual hosting, so I dont know it by heart.
Basically you've to define the hosts in the server.xml as describes in the
howto and configure jk1 as usual. Add the JkMounts within the virtualhosts
in apache's httpd.conf (the virtual hosts in apache must have the same name as in tomcat) :
NameVirtualHost your_ip:80
<VirtualHost your_ip>
ServerName site1
DocumentRoot /var/www/site1
JkMount /servlet/* ajp13 </VirtualHost>
<Virtualhost your_ip> ServerName site2 DocumentRoot /var/www/site2 JkMount /servlet/* ajp13 </VirtualHost>
If I recall it correctly...
thanks for the reply. I wasn't explicit when I was asking about the differences.
I need to know what the differences in the workers.properties file are regarding the virtual name hosts and whether each virtual host requires a separate worker.
If not so, how would I assign several virtual hosts to a worker?
you dont need to modify your workers.properties, the "default" will do fine.
mod_jk passes the hostname as defined in the apache's virtualhost to tomcat.
regards,
-- Staf Wagemakers
email: staf at patat.org homepage: http://staf.patat.org
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
