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
63
votes
3 answers

What is AJP protocol used for?

Okay, I've read a small article on wiki which explained AJP a bit. Basically this protocol is used for communication between Apache and Application server. But why may one need it in the first place? Why not use just plain http?
user1745356
  • 4,462
  • 7
  • 42
  • 70
52
votes
5 answers

The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "" after upgrade to 2.2.5

Caused by: java.lang.IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "". This combination is not valid. at…
Manjunath
  • 715
  • 1
  • 7
  • 17
33
votes
4 answers

How can I monitor/log Tomcat's thread pool?

I have a Tomcat installation where I suspect the thread pool may be decreasing over time due to threads not being properly released. I get an error in catalina.out when maxthreads is reached, but I would like to log the number of threads in use to a…
Alex P
  • 333
  • 1
  • 3
  • 4
21
votes
3 answers

Apache + Tomcat: Using mod_proxy instead of AJP

Is there any way I connect Apache to Tomcat using an HTTP proxy such that Tomcat gets the correct incoming host name rather than localhost? I'm using this directive in apache: ProxyPass /path http://localhost:8080/path But it comes through as…
Marcus Downing
  • 10,054
  • 10
  • 63
  • 85
17
votes
2 answers

Tomcat 8.5.51 - Issues with secretRequired="false"

The secretRequired="false" option added to AJP connector is server.xml. However, the connector does not start with Protocol handler start failed error. It is behind an Apache Server version 2.4.25.
imriss
  • 1,815
  • 4
  • 31
  • 46
17
votes
7 answers

Apache & Tomcat: ProxyPass and ProxyPassReverse

I'am having troubles configuring Apache and Tomcat, this is the scenario: I have an Apache Web Server, running and working normally, I can access to this one just typing: http://localhost Also, in this host, I have a Tomcat running and working…
karlos9o
  • 222
  • 1
  • 2
  • 7
15
votes
3 answers

ProxyPass, ProxyReverse vs AJP

I currently have a Tomcat + Apache HTTP server setting to serve my Java servlet: ProxyPass /myservice http://localhost:8080/myservice ProxyPassRerverse /myservice http://localhost:8080/myservice This is all fine except that myservice needs to know…
user121196
  • 30,032
  • 57
  • 148
  • 198
11
votes
2 answers

AJP 1.3 Connector listens on port 8009 globally, why and how to turn it off?

I set up a Tomcat 6 with an Apache 2 and mod_proxy. Now I have this default value in my server.xml: netstat looks like this: Active Internet connections (servers and…
flhe
  • 341
  • 4
  • 8
  • 15
11
votes
3 answers

Tomcat behind Apache using ajp for Spring Boot application

I've been trying to configure Apache web server with a Spring Boot app that uses embedded Tomcat. Before Spring Boot I used to create an ajp.conf file like: ServerName localhost AddDefaultCharset Off …
Nayan
  • 235
  • 1
  • 3
  • 10
10
votes
11 answers

Apache/Tomcat error - wrong pages being delivered

This error has been driving me nuts. We have a server running Apache and Tomcat, serving multiple different sites. Normally the server runs fine, but sometimes an error happens where people are served the wrong page - the page that somebody else…
Marcus Downing
  • 10,054
  • 10
  • 63
  • 85
9
votes
1 answer

WebSockets through Apache and Tomcat: HTTP upgrade is not supported by the AJP protocol

I am developing with WebSockets, and made a working web application running on Tomcat 8. However, when testing with Apache 2 in front of it, the client is getting an HTTP 500 and the Tomcat log says: java.lang.UnsupportedOperationException: HTTP…
Nicolas
  • 2,321
  • 4
  • 21
  • 32
8
votes
1 answer

Spring Security and AJP proxy

I use Spring Security and Apache proxy for a web app. When using standard mod_proxy everything is OK, but after switching to AJP proxy there appears a problem with Spring security redirects. Apache config: ServerName…
Andrey Minogin
  • 4,521
  • 6
  • 38
  • 60
8
votes
1 answer

apache proxy to tomcat keep alive confusion

I have an apache 2.2 server infront of a tomcat 6 server. using mod_proxy_ajp on apache to proxy requests to tomcat. pretty standard setup. If I need to disable keep-alive connections for browsers, how do i do this? I need to do disable keep-alive…
Patrick
  • 1,302
  • 2
  • 13
  • 22
8
votes
1 answer

mod_jk losing connection to tomcat

I am having an issue with my current production server which has just started over the last couple of days. I am running apache httpd-2.2.3 and tomcat-5.5.20, connected with mod_jk v1.3, and have a Spring MVC site hosted on the tomcat. What is…
sparkdoo
  • 522
  • 1
  • 5
  • 13
7
votes
1 answer

Apache 2.2 Virtual hosts + Tomcat 7 applications

I have installed on the same machine one apache server and one tomcat 7 server. The apache server is used and configured with virtual hosts enabled as is supposed to server multiple php websites. However, we have the need to serve some tomcat…
user2022901
  • 151
  • 1
  • 1
  • 4
1
2 3
16 17