Questions tagged [mod-jk]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11 votes
3 answers
86k views

Failed to load resource: net::ERR_CONNECTION_RESET

Since I started using an application behind a reverse proxy (Apache2's mod_jk), I've noticed some pages would not load; but do load, without the reverse proxy settings. The error in Google Chrome: ...
Mohamed Ennahdi El Idrissi's user avatar
6 votes
4 answers
3k views

mod_jk or mod_proxy

I tried googling and the only articles I found comparing these two were from 2005 down to 2002. I just set up my first Tomcat instance to run Jira for a project I'm doing. I want to proxy this ...
brad's user avatar
  • 512
6 votes
4 answers
16k views

mod_jk produces Error smh errno=13

I am trying to use mod_jk for load balancing. Loadbalancer: 172.17.8.189 (HTTPD+mod_jk) Node1: 172.17.8.193 (apache tomcat instance 1) Node2: 172.17.8.196 (apache tomcat instance 2) I checked my ...
nth's user avatar
  • 89
6 votes
2 answers
25k views

Header set Access-Control-Allow-Origin not working with mod_rewrite + mod_jk

My first question on here on SF so please forgive me if I manage to bork the post. :) Anyways, I'm using mod_rewrite on one of my machines with a simple rule that redirects to a webapp on another ...
tharant's user avatar
  • 61
5 votes
2 answers
5k views

Apache load balancing when the session id is in url

I really have no idea... I have a java web application which stores the session id in URL rather than using cookies. I want to run the application on 2 tomcat servers and fronting them with an Apache ...
KK Lo's user avatar
  • 51
5 votes
3 answers
11k views

Connecting tomcat6 to apache2

Disclaimier: Not a server admin I've been scratching my head over this for weeks now (not consistently mind you, as that would be maddening). I've been trying to connect my apache2 server to my ...
StudentKen's user avatar
5 votes
1 answer
2k views

Compression of Tomcat mod_jk results in Apache httpd

I'm developing a web application locally on my system, serving it using Tomcat (tomcat-7.0.52). In production, I want to front the Tomcat with an Apache httpd (Apache/2.2.15). This works and I ...
Blama's user avatar
  • 173
4 votes
2 answers
7k views

mod_jk status page not working

I am doing clustering in Tomcat 7 with Apache server. It is working fine too. However I have the following issues: 1) I am trying to monitor the mod_jk status page; but it is giving 404 error. 2) in ...
Kumar's user avatar
  • 211
4 votes
2 answers
27k views

Why - Could not find worker with name 'jk-manager' in uri map post processing?

I am using apache2 + mod_jk(ajp protocol) + tomcat7. but I always get the error below: [Sat Mar 30 17:30:54.691 2013] [25238:3074365824] [info] init_jk::mod_jk.c (3365): mod_jk/1.2.37 initialized [...
Hardbone's user avatar
4 votes
2 answers
18k views

IOException: Socket read failed using Apache 2, mod_jk and Tomcat over AJP

I am getting the following Exception from time to time when my users are connecting with their Android devices to out JSON Rest Service: java.io.IOException: Socket read failed at org.apache....
Thomas Einwaller's user avatar
4 votes
1 answer
2k views

Varnish + Tomcat vs Apache + mod_jk + Tomcat

Does anyone have some performance metrics for Varnish in front of 1) Tomcat or 2) Apache with mod_jk (connected to Tomcat). I know that the AJP connector is supposedly faster than HTTP, but I was ...
Adrian Ber's user avatar
4 votes
2 answers
3k views

Apache Mod_rewrite rule working on one server, but not another

I am using mod_jk and mod_rewrite on httpd 2.2.15. I have a rule.... RewriteCond %{REQUEST_URI} !^/video/play\.xhtml.* RewriteRule ^/video/(.*) /video/play.xhtml?vid=$1 [PT] I just want to rewrite ...
Mason's user avatar
  • 41
4 votes
1 answer
3k views

Tomcat mod_jk cluster skip 404 http status

I am trying Tomcat Clustering with mod_jk for months and so far not so bad but facing a problem during deployment. I am using FarmDeployer to copy and deploy the WAR to other nodes in the cluster but ...
user53864's user avatar
  • 1,753
3 votes
2 answers
3k views

Tomcat 7 with mod_jk

I am at cross roads in deciding whether to use mod_jk or mod_proxy for setting up a load balancing system with Apache 2 and Tomcat 7. I read the usual comparison that mod_jk is more powerful but ...
Santosh's user avatar
  • 133
3 votes
2 answers
11k views

Farm Deployer not working in Tomcat Cluster

I have setup apache-tomcat clustering(Ubuntu Server) and I used tomcat supported clustering technique with mod_jk following the link. I've setup with One Load Balancer and Two web servers. The major ...
user53864's user avatar
  • 1,753
3 votes
3 answers
3k views

Jboss + mod_rewrite =?

I have 2 servers, Apache and Jboss. Using JKmount .war files are mounted and present a complex site. eg: JkMount /directory/* ajp13 Alias /directory /jboss/server/default/deploy/directory.war <...
Antitribu's user avatar
  • 1,749
3 votes
3 answers
11k views

mod_jk unable to connect with tomcat9

After unzip the tomcat9 package available on tomcat.apache.org, and have the mod_jk configured to this: workers.tomcat_home=/opt/apache-tomcat-9.0.34 workers.java_home=/opt/jdk-13 ps=/ worker.list=...
Kleber Mota's user avatar
3 votes
2 answers
8k views

Apache httpd mod_rewrite with Tomcat resulting in lost JSESSIONID

I'm working on a Java web application, for which I recently implemented an authentication module that relies on the JSESSIONID cookie to identify users. I was testing on a local tomcat from eclipse ...
sldk's user avatar
  • 151
3 votes
1 answer
4k views

how to disable mod_jk log completely?

My mod_jk.log gets 2MB bigger in an hour and all it has entries like : [Mon Aug 13 10:51:28 2012] ajp13 www.my_site.com 0.690152 [Mon Aug 13 10:51:28 2012] ajp13 www.my_site.com 0.002675 [Mon Aug 13 ...
Shatiz's user avatar
  • 135
3 votes
1 answer
2k views

PHP and JSP running on same machine.. Tomcat on Apache

Sorry if this has been posted/answered already, but I cannot find the simple answer. I have two applications one JSP and one PHP both hosted on same machine running apache and tomcat. Apache is ...
user avatar
3 votes
1 answer
4k views

Apache in front of Glassfish: mod_jk on https(443)

After the recommendation of using Apache http server in front of glassfish ( check question ), i used the following tutorial and made it work but only on port 80. What i mean is now i can type: www....
ccot's user avatar
  • 181
3 votes
1 answer
2k views

Obscuring tomcat context path in URL

I've setup an Apache reverse proxy to Tomcat that is working, in that I can load my url and get connection to the Tomcat backend. What I'm attempting to do now is rewrite the URL that a user sees in ...
Matthew Schmitt's user avatar
3 votes
1 answer
3k views

mod_jk logs errors but users report none

We have an apache server load balancing requests for downloads to two different servers. The mod_jk error log is filled with the following kind of errors [Mon Feb 13 16:59:02.948 2012] [19453:...
Jasper Floor's user avatar
3 votes
1 answer
21k views

How can I diagnose a "502 Bad Gateway" response from an Apache/Tomcat configuration?

I just finished up configuring a fairly default configuration of Tomcat. My Apache configuration was pre-existing and post-tomcat it still has no issues. I am using mod_jk to (if I am saying this ...
Structure's user avatar
  • 185
2 votes
5 answers
27k views

mod_jk problem: Tomcat is probably not started or is listening on the wrong port

I am running some application on Tomcat 6.0.26. There is Apache in front of web server talking to it over mod_jk. Every few hours when I try to access application browser simply spins, and no content ...
Konrad Pawlus's user avatar
2 votes
1 answer
2k views

Glassfish behind Apache reverse proxy: Mod-jk or HTTP?

I am planning a large deployment of a Glassfish-powered web application: A number of nodes running multiple Glassfish 3.1.1 instances are running the web application. The web application consists of ...
Hank's user avatar
  • 379
2 votes
1 answer
2k views

hosting 2 webapps under 1 apache/tomcat

I am trying to host multiple webapps under tomcat 6 behind apache2 via mod_jk. I am at my wits end with this. the problem i am facing that both domains seems to point to a single tomcat 'domain'. my ...
mkoryak's user avatar
  • 171
2 votes
1 answer
972 views

Why does mod_jk bypass Apache authorization?

Since switching from Apache 2.2 authorization gets bypassed for many JkMounts (except jk-status). If I cancel the browser password popup, I get a 401-page. It is not, as I expect, the one from ...
Daniel's user avatar
  • 131
2 votes
1 answer
424 views

Why does mod_rewrite not reprocess rewritten paths?

I'm doing a path rewrite to set and environment variable that will cause mod_jk to use a specific JBoss server. Works perfectly with any of the application paths. When I try our monitoring servelet (...
8None1's user avatar
  • 265
2 votes
1 answer
2k views

How to turn on mod_cache with mod_proxy or mod_jk

I'm trying to setup apache+mod_jk/mod_proxy with mod_cache. But it looks like all proxied requests are ignored by mod_cache. May be it is related to module handling order or something else? Apache 2....
Sirex's user avatar
  • 31
2 votes
1 answer
224 views

Apache2 mod-jk and VirtualHosts

I have an apache2 server with few virtual host. Two of those Virtual Hosts is using modJK to handle pages generated by Glassfish. I have global configuration for modJK and JkMount directives used ...
m-szalik's user avatar
  • 123
2 votes
1 answer
161 views

Apache (mod_ssl) not delivering SSL Certificates when requested

Houston, I have a problem. I have an instance of Apache (httpd) on one machine using mod_ssl with openssl and mod_jk pointing at several tomcat instances on other physical machines. Apache is really ...
Andy's user avatar
  • 142
2 votes
1 answer
520 views

JBoss 5.1.0 GA with Apache Load Balancer

I've followed the tutorial here: http://community.jboss.org/wiki/UsingModjk12WithJBoss All my files as configured as it says there but then I try to access http://localhost/jmx-console I get Proxy ...
Sergiu 's user avatar
  • 123
2 votes
1 answer
2k views

Apache sends 400 instead of 404

I've got an odd problem. Apache is replying with a 400 error code instead of 404 when ever a client requests a non existing jsp page (html request are answered correctly with a 404). The only time ...
user58052's user avatar
2 votes
1 answer
2k views

Apache, Tomcat and mod_jk for load balancing

I've set-up a basic Apache (2.2.x) and Tomcat (6.0.x) set-up using mod_jk for load balancing using the worker.properties file. Preliminary testing seems to show that this works relatively well, and it ...
pHk's user avatar
  • 121
2 votes
4 answers
1k views

what is the experience with the load balancing service offered by amazon?

We are currently using mod_jk and apache to load balance our tomcat servers. We would like to know what is the experience and comparison with the amazon AWS load balancer.
Geo's user avatar
  • 3,081
2 votes
0 answers
632 views

Apache + MOD_JK: Rewriting URLs + ProxyPassing thorugh AJP

I've a frontal server with Apache 2.4.23 deployed + OpenSSL 1.0.2j. Then I've another server with Tomcat 7 installed. The idea is that Apache has a VHOST on *:443, which uses ProxyPass to send the ...
Lightworker's user avatar
2 votes
0 answers
945 views

socket_keepalive configuration for mod_jk

I have Apache httpd with mod_jk. I have issue with killed connections after long idling period: Apache stops to respond and each HTTP request hangs for 15 minutes. I tried turn off mod_jk connection ...
Dmitrii Stebliuk's user avatar
2 votes
1 answer
2k views

significant page load speed difference : directly accessing Tomcat (localhost) VS accessing tomcat via Apache (mod_jk connector)

I have a tomcat v6 which contains 2 web applications (JSF2.0 and JSP). The physical server is RedHat Enterprise with 16GB memory. In current form, the tomcat is exposed to the internet via apache 2.2 ...
John Younan's user avatar
1 vote
3 answers
3k views

Answering all requests with a maintenance page without restarting Apache HTTP server

let say we have the following picture: A Apache HTTP server is serving the users' requests. It forwards all (or a part of) requests to a Tomcat server using mod_jk. Let's say we want to shutdown our ...
Igor Mukhin's user avatar
1 vote
1 answer
528 views

Apache + Tomcat: Connection, but not via mod_jk

I am tasked with installing a new system to take over the job of an old system. The old system is a Ubuntu installation running Apache and Tomcat, as well as a few other services. The new system will ...
Dabu's user avatar
  • 359
1 vote
2 answers
336 views

Is there any reason to use Apache as a proxy between my users and Glassfish?

I've seen a lot of discussion on the best way to use Apache as a proxy (either mod_proxy or mod_jk) with Glassfish (and other Java application servers), but I haven't seen anybody really explain why. ...
user avatar
1 vote
2 answers
2k views

Apache + mod_jk + tomcat: too many apache processes created

I am using Apache + mod_jk + tomcat on my server and when I get many requests, especially with 404 responses (apparently it is scanning), I see many httpd processes started. When I shut down Tomcat ...
Stas's user avatar
  • 157
1 vote
1 answer
2k views

Using JkMount in a LocationMatch directive in Apache 2.2

I'm on Debian Wheezy with Apache 2.2.2. I previously had all requests for a VirtualHost forwarding to Tomcat using: JkMount / ajp13_worker JkMount /* ajp13_worker Now, I want to exclude one ...
Jake Cobb's user avatar
  • 113
1 vote
2 answers
4k views

SSL configuration , Tomcat with Apache and mod_jk

I am looking to configure SSL with tomcat 6 and apache web server, using the tomcat connector mod_jk. I am pretty new to this, so please bear with me. I have SSL certificate purchased and configured ...
wazzz's user avatar
  • 13
1 vote
1 answer
530 views

tomcat7 beginner- using mod_jk with multiple different domains

I am setting up a server where "domain1.com" and "domain2.com" should be served by Apache HTML/PHP server, while "app.domain1.com" and "domain3.com" should be served by Apache Tomcat. I want to ...
Arvind's user avatar
  • 501
1 vote
1 answer
2k views

setting up workers.properties file for mod_jk

I'm trying to create a workers.properties file to get mod_jk communicating with Apache webserver 2.2.x. The GlassFish 3.1 Administration Document includes the following example for worker.properties: ...
gkdsp's user avatar
  • 582
1 vote
1 answer
2k views

Apache HTTPD - Segmentation fault when loading mod_jk module

I just set up mod_jk with my Apache httpd 2.0.52 installation, but now when I try to start Apache, it has a segmentation fault. I've checked that I am using the mod_jk compiled for 2.0.x.. built ...
Jon Gauthier's user avatar
1 vote
2 answers
3k views

How do I properly run Tomcat alongside Apache?

I have installed Apache Tomcat and Apache Webserver on a Ubuntu 10.04 Server system. I basically followed these steps to configure the mod-jk connector and my webserver now seems to redirect all ...
mfellner's user avatar
  • 113
1 vote
2 answers
3k views

Nginx as a proxy to Jetty

Pardon me, this is my first attempt at Nginx-Jetty instead of Apache-JK-Tomcat. I deployed myapp.war file to $JETTY_HOME/webapps/, and the app is accessible at the url: http://myIP:8080/myapp I did ...
user avatar