Apache HTTP Server+Tomcat: Which file generates mod_jk.conf, how to modify generated stuff, and how does httpd reach it?
Posted
by
Sk8erPeter
on Server Fault
See other posts from Server Fault
or by Sk8erPeter
Published on 2011-08-18T14:26:46Z
Indexed on
2012/06/03
10:42 UTC
Read the original article
Hit count: 273
I'm using XAMPP with Apache HTTP Server and Tomcat Add-On installed.
There's a default mod_jk.conf which is generated by Tomcat when starting it.
- But which file generates this mod_jk.conf file?
- How can I modify default values? By default, it looks like this: pastebin - mod_jk.conf.
- How does Apache HTTP Server reach this file? I can't see any reference to this file when looking into httpd.conf.
- When I put a VirtualHost in my httpd.conf file, and I put the line
JkMount /* ajp13
into it, Apache HTTP Server service can't start (causes a 7024 event id error in Event Viewer (with error code 1, but nothing specific), but puts no error messages intoerror.log
. The VirtualHost looks like this: pastebin - VirtualHost + JkMount. This way Apache HTTP Server can not start. If I comment out the lineJkMount /* ajp13
, it starts without a problem. BUT if I put the following line, which is the same as in mod_jk.conf, before the mentioned VirtualHost again, the service can start!
<IfModule !mod_jk.c
>LoadModule jk_module "C:/xampp/tomcat/xampp/apache/modules/mod_jk.so"
</IfModule
>
Why do I have to put this line in again?
Why does that happen, that the http://localhost/example
does work, so this query is redirected to AJP13, but I have to put the LoadModule line in again in another file?
EDIT: I don't have a clue why, I surely modified something, but now /example doesn't work either... And the config above gives a 500 Internal Server Error... :S
Thanks!
© Server Fault or respective owner