Questions tagged [ajp]

80 questions
22
votes
7 answers

Apache+Tomcat having problems communicating. Unclear error messages. Bringing down websites hosted under Tomcat

Setup: Fedora 8 Apache 2.2.8 Tomcat 5.5.8 Apache is forwarding requests using AJP. Problem: After a certain period of time (no constant at all, can be between an hour or two, or one or more days) Tomcat will go down. Either it stops responding, or…
Jordy Boom
  • 411
  • 1
  • 3
  • 9
10
votes
3 answers

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 won't load (They would without the reverse proxy settings). It was a subtle error which I had to inspect to find it out, thanks to Google Chrome:…
10
votes
3 answers

How get I the Tomcat AJP-Connectors working?

I want to access Tomcat through the Apache-webserver using connectors. I sticked to the documentation: http://tomcat.apache.org/connectors-doc/generic_howto/quick.html I only modified it a little to match directory-structure used on my…
Mnementh
  • 1,075
  • 2
  • 11
  • 18
9
votes
1 answer

mod_proxy vs mod_proxy_ajp vs mod_jk

We are preparing for migration from the following environment: Apache 2.0.2 --AJP--> JBoss4.2.2 to Apache 2.2.3 --???--> JBoss 5.1.0 How would you join the two together? Options are: Classic AJP (means building mod_jk for Apache) mod_proxy…
Rich
  • 1,333
  • 5
  • 27
  • 39
7
votes
2 answers

Increasing timeout for mod_proxy_ajp connections

I've got my apache (2.2.3) talking to tomcat 6.something through mod_proxy_ajp. I have some ridiculously long lived requests (2-6 minutes) and I think we're hitting some default timeout somewhere... where is the correct place to bump that up? here…
danb
  • 173
  • 1
  • 3
  • 6
6
votes
1 answer

How to re-activate disabled Apache 2.2 AJP connections?

I don't use AJP for load-balancing; I have a single Apache 2.2 instance that proxies some URLs to a single Tomcat 7 instance via AJP. When Tomcat is down, the AJP proxy becomes disabled on the first failed request, and is not re-enabled when Tomcat…
rustyx
  • 1,506
  • 3
  • 19
  • 28
5
votes
2 answers

How can I set use mod_proxy_ajp with Apache and Tomcat?

I'd like to run Apache and Tomcat on an RHEL 5 server with Apache handling Ruby on Rails apps (through mod_rails/Passenger) and Tomcat handling Java apps. Under Apache, each Rails app will have a URL and vhost. The URLs are already configured in our…
Agvorth
  • 2,429
  • 4
  • 28
  • 29
5
votes
1 answer

setting up AJP secret between Apache and Tomcat

I'm having trouble setting up a secret between Apache (2.4.41) and Tomcat (7.0.99). I think I have it setup correctly in Tomcat (server.xml): When I try to setup the Apache end…
Matt
  • 153
  • 1
  • 1
  • 4
4
votes
3 answers

How to redirect Apache to different ports on a GlassFish server?

I have a GlassFish instance running different services on different ports. An Apache web server sits in front of the GlassFish, and I want to set up virtual hosts on Apache to redirect to certain ports on the GlassFish server. I've added the Tomcat…
digitalcolony
3
votes
2 answers

How to pass secret in rewriterule to AJP protocol

I have a Apache server running 2.4.6, Tomcat 8.5.33 running lucee. We have rewrite rules that proxy to AJP on port 8009. ProxyPassReverse / ajp://localhost:8009/ timeout=3600 RewriteEngine On # Rewrite sitemap RewriteRule ^/sitemap\.txt$…
3
votes
2 answers

Getting error 403 with Tomcat 7.0.100 and Apache server 2.4 when using "secret" with AJP

Because of the bug CVE-2020-1938 we want to use the latest Tomcat 7.0.100. See also CVE-2020-1938 We also use an Apache server in version 2.4, which connects to the Tomcat via AJP. The latest Tomcat version requires various new settings for secure…
egmontr
  • 33
  • 1
  • 5
2
votes
2 answers

Apache Cluster + Tomcat websocket

We've recently configured a new Cluster with the following configuration: www.mydomain.com | APACHE + MOD_JK (AJP) Load Balancer / \ Tomcat1 Tomcat2 All the requests are made through HTTPS and…
Medioman92
  • 123
  • 4
2
votes
2 answers

Apache 2.4 set ProxyTimeout only for ONE URL

I have an issue with Apache proxies. I was asked to let the connection between Apache and the web client opened, because we are working on SSE. The problem is that by default the timeout is 60secs. I would like to increase this value significantly,…
IsKor
  • 45
  • 3
  • 10
2
votes
0 answers

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 request via AJP to Tomcat server according to…
Lightworker
  • 173
  • 1
  • 1
  • 7
2
votes
2 answers

Configure HA Proxy between Apache and Tomcat servers

Want to configure HA Proxy with my existing structure. Currently I have Apache->Tomcat server. This I want to change to Apache->HA Proxy->Tomcat Server. HA I have configured for Http request. But my Apache works with AJP13. Do I need to change 1)…
Navnath
  • 135
  • 1
  • 5
1
2 3 4 5 6