Questions tagged [mod-jk]

mod_jk is the connector used to connect the Tomcat servlet container with web servers using AJP protocol.

mod_jk, the Apache Tomcat Connector, is a replacement to the elderly mod_jserv. It is a completely new Tomcat-Apache plug-in that handles the communication between Tomcat and Apache.

422 questions
6
votes
5 answers

Removing Tomcat context from URLs for a virtual host (mod_jk, mod_rewrite)

I have a single Tomcat instance containing a number of webapps, each accessible via it's /Context. Tomcat is behind httpd (actually Debian Apache2), configured with virtual hosts to serve each app/Context. Tomcat connectivity is with mod_jk. This…
Richard H
  • 38,037
  • 37
  • 111
  • 138
6
votes
2 answers

What is the best way to install Mod_jk on linux to run apache in front of tomcat

I am using Wordpress for my blog and my main project is in java using tomcat server so I want each request coming to my server to go through apache. For exemple if my site uses www.sample.com I would like to send the request to tomcat and if it is…
Ram Balwad
  • 269
  • 1
  • 4
  • 11
6
votes
1 answer

How do I build mod_jk on Mac OS X Mountain Lion?

I followed the instructions in BUILDING.txt in the native directory and executed ./configure --with-apxs=/usr/sbin/apxs Here is some of the output building connector for "apache-2.0" checking for gcc...…
Adrian Rodriguez
  • 3,232
  • 2
  • 24
  • 34
6
votes
1 answer

mod_jk conflicts with mod_rewrite

I've got an Apache and Tomcat running and I use mod_jk to bind them. I have a Tomcat worker called "tc1" and the following setup on my VirtualHost: JkMount /* tc1 JkUnMount /*.png tc1 JkUnMount /*.gif tc1 JkUnMount /*.css tc1 JkUnMount /*.js…
cherouvim
  • 31,725
  • 15
  • 104
  • 153
5
votes
2 answers

Configure Apache SSL and then redirect to Tomcat with mod_jk

I'm trying to configure my home server to accept SSL Connection on port 443. I've www.mydomain.com domain, I've just linked Apache2 and Tomcat, using mod_jk, now I wish to accept also https request from the web. This is my…
piojo
  • 183
  • 3
  • 4
  • 10
5
votes
2 answers

How can I force a request through mod_jk down to a specific worker?

If I have mod_jk set up with several workers and a load balancer worker, is there a request parameter or something that would allow me to force a specific http request down to a specific worker. For instance if I have a worker worker1 is there…
polarbear
  • 12,425
  • 6
  • 29
  • 22
5
votes
2 answers

How to mount context-referenced Tomcat application with mod_jk?

I have an WAR application running in Tomcat at /foo context, meaning that its URL is http://example.com:8080/foo. Now I'm trying to connect Apache HTTP Server to Tomcat through mod_jk. This is my workers.properties…
yegor256
  • 102,010
  • 123
  • 446
  • 597
5
votes
1 answer

How to Configure the Web Connector from metrics.log Values

I am reviewing the ColdFusion Web Connector settings in workers.properties to hopefully address a sporadic response time issue. I've been advised to inspect the output from the metrics.log file (CF Admin > Debugging & Logging > Debug Output Settings…
Richard Herbert
  • 616
  • 3
  • 5
5
votes
5 answers

Session mix up - apache httpd with mod_jk, tomcat, spring security - serving data of other user

Recently we have faced a serious problem, that one user was served data of another user. This problem is almost impossible to reproduce. We are using standard logged-users-management provided by Spring-security, and we are sure that the problem…
stue
  • 76
  • 1
  • 4
5
votes
1 answer

.htaccess not working apache-tomcat

I have a apache tomcat server integrated with mod_jk. I have created .htaccess files in the directories I want to restrict. but the problem is .htaccess is working in apache served directories but not in the directories which is served by tomcat.…
Randeep
  • 533
  • 3
  • 7
  • 18
4
votes
2 answers

Apache Http Load balancing failover with mod_jk

I am using apache http and the mod_jk for load balancing. While using sticky sessions if one of the tomcat instances dies the request is successfully redirected to the other node. If for some reason the applications dies but the tomcat is alive then…
user944643
  • 83
  • 2
  • 6
4
votes
1 answer

JkMount Ignoring Alias

I am setting up a new server using Apache, Tomcat and Railo ColdFusion. I am using mod_jk to connect Apache to Tomcat, and am using a CMS system on the java server. I want to forward every request to the Tomcat server except for a specific…
Dave Long
  • 9,569
  • 14
  • 59
  • 89
4
votes
3 answers

Apache 2.4.29 and mod_jk 1.2.42 not forwarding to tomcat

I'm working on an apache 2.4.29 installation with mod_jk 1.2.42 against a tomcat 8.5.11. My problem is that the apache + mod_jk is not forwarding the request to the tomcat. We have a previous apache installation (2.2.31) with mod_jk (1.2.25) against…
radicaled
  • 2,369
  • 5
  • 30
  • 44
4
votes
3 answers

Multiple Apache mod_jk servers pointing to the same Tomcat worker?

We have a single Tomcat app server and a single front-end web server running Apache and mod_jk. Is it possible for us to add a second front-end web server, that points to the same app server and also runs Apache and mod_jk? We don't want to do this…
Derrick Miller
  • 1,860
  • 3
  • 21
  • 37
4
votes
3 answers

Uploading a file bigger than 10mb - Apache 2.4 and JBoss EAP 7 connected via Mod_JK

I am receiving a "Bad Gateway The proxy server received an invalid response from an upstream server" error while trying to upload a 20MB file. The problem starts in pre-production when I access the page via Apache. Any file over 10MB gives the above…
Sully
  • 41
  • 1
  • 2
1
2
3
28 29