Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have remote servlet for example: h*tps://[ip_address]/servlet (h*tps://[ip_address]/ - Tomcat main page) that i need to configure on local Apache HTTPd server. My mod_jk configuration looks like below, but doesn't work. Something works, because when i type h*tps://localhost/console in a browser i get Tomcat error page "HTTP Status 404 - /console/".

JkWorkersFile /etc/apache2/
JkLogFile     /var/log/apache2/mod_jk.log
JkLogLevel    info
JkMount /console/* ajp13


Remote Tomcat is configured good i think - listen on port 8009 and servlet h*tps://[ip_address]/servlet works too.

<Connector port="8009" protocol="AJP/1.3" redirectPort="443" />

Anybody helps ?

share|improve this question
You should switch to mod_proxy_ajp. It has a much cleaner syntax. mod_jk is buggy and deprecated. – al. Feb 23 '11 at 8:59
al, mod_jk2 is buggy and depreciated, mod_jk is fine. – Decado Mar 8 '11 at 11:31
up vote 3 down vote accepted

The pattern /console/* wont match /console.

Normally it's easiest to set up the JkMounts as

JkMount /console ajp13
JkMount /console/* ajp13

For debugging things like this it's very useful to increase the logging level, so set

JkLogLevel    debug 

and have a read through the log you specified.

share|improve this answer

Everything is OK in the mod_jk.log ?

Could you try with

JkMount /console* ajp13


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.