Questions tagged [ajp]

The Apache JServ Protocol is an efficient protocol to connect backend web servers to front end web servers.

The Apache JServ Protocol is an efficient protocol to connect backend web servers to front end web servers. It tries to be more efficient than HTTP by using header compression and preparsed data structures. AJP is mostly used to run a Tomcat backend web server behind an Apache frontend web server but there are no restrictions in the protocol to limit it to these servers.

Referencens

251 questions
3
votes
2 answers

Identify cause of hundreds of AJP threads in Tomcat

We have two Tomcat 6.0.20 servers fronted by Apache, with communication between the two using AJP. Tomcat in turn consumes web services on a JBoss cluster. This morning, one of the Tomcat machines was using 100% of CPU on 6 of the 8 cores on our…
Rich
  • 15,602
  • 15
  • 79
  • 126
3
votes
3 answers

Tomcat mod_proxy AJP static resources directory

I am using httpd with tomcat using the following config: ProxyPass / ajp://localhost:8009/MyProject ProxyPassReverse / ajp://localhost:8009/MyProject This works fine except my image links from tomcat do not work when the HTML renders:
DD.
  • 21,498
  • 52
  • 157
  • 246
3
votes
2 answers

Apache Webserver & JBoss AJP connectivity with https

We are hosting a Java EE Application running on JBoss. For security reasons this application that should be available on the internet is protected with a front-end Apache server. We are using AJP to enable this. This works fine when we access the…
Shyam Kumar Sundarakumar
  • 5,649
  • 13
  • 42
  • 69
3
votes
2 answers

Is AJP secure enough?

We need to host a java richfaces/hibernate app in our hosting service. As a requirement of our security department we cannot make any connection from that application to our internal databases. One suggested solution was to make an internal…
Abdul
  • 611
  • 7
  • 11
3
votes
1 answer

Apache ProxyPass for URLS inconsistently failing

This one's driving me nuts. I have an active and in-use Apache proxy server serving content up on EC2. It's working great, and has a variety of vhosts that are configured like this: ServerName m.FOO.com ServerAlias…
penk
  • 41
  • 1
  • 4
3
votes
0 answers

HttpExtensionProc::jk_isapi_plugin.c (2328): service() failed with http error 503

We are facing two problem using isapi redirector on a virtual machine. Every couple minutes the log shows http error 503: ... [Sun Oct 14 14:25:02.465 2012] [8428:7856] [error] ajp_send_request::jk_ajp_common.c (1662): (application) failed…
Dedi Hakak
  • 31
  • 1
  • 2
3
votes
1 answer

Grails 2.1.0 app tomcat 7.0.22 Session empty after redirect

I am just learning grails and have a problem with an app that works fine when I run it in Netbeans but shows strange behavior when deployed to Tomcat 7.0.22 on a Centos 5.4 server. I am using the proxy_ajp to make the app available with apache. The…
Cry
  • 83
  • 7
3
votes
3 answers

Speed up images in Tomcat 6

In tomcat 6 i have a servlet running openbluedragon, everything compiles and servers up quik, with the exception of images, they really lag significantly. Any suggestions optimization for image serving? Here is my server.xml:
ethyreal
  • 3,659
  • 2
  • 21
  • 25
2
votes
1 answer

How can I protect a Tomcat webapp that's reverse proxied in an Apache2 virtual host using basic authentication?

I'm having trouble figuring out how to adding basic HTTP authentication to password-protect a development testing environment running on a production web server. Both the main site and the testing environment are virtual hosts that use AJP proxying…
Joe Carroll
  • 141
  • 1
  • 5
2
votes
0 answers

Connection problem with ajp between Apache/2.4.37 (centos 8) and tomcat 9.0.41 (503, service unavailable) AH00896 error

This is the httpd.conf Listen 80 ProxyPass /ajpsubdir ajp://127.0.0.1:8009 secret="mysecret" ProxyPassReverse /ajpsubdir ajp://127.0.0.1:8009 secret="mysecret" this is the tomcat/conf/server.conf
Alex Btz
  • 21
  • 2
2
votes
3 answers

(111)Connection refused - Apache Reverse Proxy and Tomcat 8.5.51 - Docker Compose

This works with Tomcat 8.5.50. However, with Tomcat 8.5.51, Apache cannot connect via AJP with the following error: [Tue Mar 10 20:15:31.378937 2020] [proxy:error] [pid 42:tid 139841308157696] (111)Connection refused: AH00957: AJP: attempt to…
imriss
  • 1,815
  • 4
  • 31
  • 46
2
votes
1 answer

Should Tomcat 6 AJP keep its threads in keepalive state with mod_jk?

I've recently switched my Tomcat server to use AJP fronted by Apache. In the manager I'm seeing: Stage Time B Sent B Recv Client VHost Request K 15395557 ms ? ? 67.195.114.27 ? ? K 15859951 ms ? ? 119.63.196.73 ? …
Sarge
  • 2,367
  • 2
  • 23
  • 36
2
votes
2 answers

Tomcat via Apache Server going down after too many connections

I have an Apache (2.4) Server that serves content through the AJP connector on a Tomcat 7 Server. One of my clients manages to kill the tomcat instance after running too many concurrent connections to a JSP JSON Api service. (Apache still works, but…
Fuzz
  • 906
  • 1
  • 12
  • 24
2
votes
2 answers

Tomcat AJP request to normal HTTP

I have a company application deployed on Tomcat 8 and another application making request to an Apache server that uses AJP ` protocol to access the application. I am new to AJP. I have created an AWS infrastructure using containers with the…
nephilimrising
  • 135
  • 3
  • 18
2
votes
6 answers

mod_proxy_ajp error: renders html as text/plain, prompts user to "save as..."

We have an odd, intermittent error that occurs with mod_proxy_ajp, i.e. using apache as a front end to a tomcat server. The error User clicks on a link browser prompts user to "save as...." (e.g. in Firefox "You have chosen top open thread.jsp…
user331465
  • 2,984
  • 13
  • 47
  • 77