Apache Virtual host not recognized

Posted by Bozho on Server Fault See other posts from Server Fault or by Bozho
Published on 2010-03-29T19:14:53Z Indexed on 2010/03/29 19:53 UTC
Read the original article Hit count: 509

Filed under:
|
|
|

I've been using one server, then I reinstalled everything on another server, and the mod_jk stopped working. Here is the situation:

  • apache 2.0 sitting "in front"
  • mod_jk used to connect to the apache to tomcat
  • tomcat 6.0.26 used to server the actual requests

I followed this tutorial. The result is:

  • accessing http://mysite.com opens the index.html in /var/www/
  • accessing http://mysite.com:8080/ works OK
  • the logs at /var/logs/apache2 show everything is OK:

[Mon Mar 29 22:01:53.310 2010] [28349:3075389184] [info] init_jk::mod_jk.c (2830): mod_jk/1.2.26 initialized

[Mon Mar 29 22:01:53 2010] [warn] No JkShmFile defined in httpd.conf. Using default /var/log/apache2/jk-runtime-status [Mon Mar 29 22:01:53 2010] [notice] Apache/2.2.9 (Debian) mod_jk/1.2.26 configured -- resuming normal operations

I compared the server.xml, jk.conf, sites-enabled/mysite from the new server to those from the old one and they are identical.

The domain name is the same (I updated the DNS record today, and it has refreshed successfully)

So the question is, what can go wrong? Is there another place where problems would be logged, if such occur?

Update What I can be almost certain of is that the virtual host is not recognized. It is always forwarded to the default virtual host. So, how to make sure the virtual host is recognized and working?

© Server Fault or respective owner

Related posts about apache

Related posts about apache2