You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dmitry Volodkovich <dm...@primus.ca> on 2003/04/23 04:38:15 UTC
mod_jk and apache virtual hosting
Hi All,
I've got apache 2.0.45 and mod_jk (not 2).
When apache is configured to serve the only 1 server - everything is all
right, it redirects me to the tomcat server and showes the jsp.
When I set up VirtualHosts, serving my 2 web sites (by name) and the 3rd
is - the tomcat rediretion - the only tomcat redirected host does work,
and the first 2 - whenever I request index.html - apache does not respond
at all. If I check that by telnet and say
GET /index.html
the response is pure silience.
When I comment the mod_jk settings in httpd.conf - the mod_jk appeares to
be unconfigured and the java server (tomcat redirected) does not work.
But the other 2 virtual hosts do work.
My httpd.conf looks this (the part of it):
LoadModule jk_module modules/mod_jk-2.0.43.so
LoadModule php4_module modules/libphp4.so
NameVirtualHost *
<VirtualHost *>
ServerAdmin root@name1.com
ServerName mail.name1.com
DocumentRoot /document1/root
ErrorLog logs/error_mail_log
CustomLog logs/access_mail_log common
</VirtualHost>
<VirtualHost *>
ServerAdmin root@name1.com
ServerName www.name2.com
DocumentRoot "/document2/root"
ErrorLog logs/error_name2_log
CustomLog logs/access_name2_log common
</VirtualHost>
#-----------------------------------------------------
JkWorkersFile "/some/path/workers.properties"
JkLogFile "/some/path/logs/mod_jk.log"
JkLogLevel debug
JkMount /*.jsp testWorker
JkMount /manager ajp13
JkMount /manager/* ajp13
<... and so on ... >
---
Only if the second part is commented - the first VirtualHost does work.
If it is UNcommented - the only name2.com works, and the name1.com does
not respond, but the browser (telnet) can connect to the port 80.
Did anybod experience the problem? Please, help me.
Regards,
Dmitry.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org