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
6
votes
1 answer

Setting Max HTTP Header Size With AJP / Tomcat 6.0

If you're not using AJP, Tomcat 6.0 Connectors have a nice maxHttpHeaderSize attribute in server.xml. But if you are using AJP, that attribute is not understood. Is there any way to increase the allowed HTTP header size if you are writing an app…
Trott
  • 66,479
  • 23
  • 173
  • 212
6
votes
1 answer

Request entity too large-413 in postman

I'm getting this error when trying to hit a service from postman but not through advanced rest client.Intially, thought it is due to some web cache layer on the server or some postman cookies but when I'm accessing it fails but another colleague…
6
votes
1 answer

spring-boot fronted with Apache and AJP

There are a lot of documents out there explaining that you should use various other things (including simple proxying) but AJP is flexible and fast, and it really helps me integrate our SAML2 SSO without any of the webapps having to worry about any…
wz2b
  • 1,017
  • 7
  • 24
5
votes
2 answers

tomcat ajp 8009 Protocol family unavailable

#question According to the official example of tomcat, I often configure the test and start. I encountered a strange problem and found that there is a problem with 8009 startup, Port and firewall are normal,and I don't know how to deal with…
jack
  • 141
  • 1
  • 5
5
votes
1 answer

How do I activate the AJP port on Wildfly 11?

I just installed Wildfly 11.0.0.Final on Amazon Linux with Java 8. How do I activate the AJP port in the $JBOSS_HOME/standalone/configuration/standalone.xml file ? I have the following configured for my socket bindings ...
Dave
  • 15,639
  • 133
  • 442
  • 830
5
votes
1 answer

How to configure AJP connector in the embedded tomcat?

I need to configure AJP connector in embedded tomcat https://tomcat.apache.org/tomcat-8.0-doc/config/ajp.html Equals to the following configuration: How to do it?
Michael
  • 10,063
  • 18
  • 65
  • 104
5
votes
1 answer

How does JBoss choose which AJP port to use?

In JBoss 5.1.0, there is a file called /conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml which includes some settings for applying an offset to the port numbers. This is used to enable multiple instances to run on the same box…
Rich
  • 15,602
  • 15
  • 79
  • 126
5
votes
1 answer

Is there a solution for AJP proxied websocket connections?

I'm currently using an AJP proxy through apache to tomcat 8. I don't want to reason why I'm using AJP, but the basics are that Apache site outside the firewall while tomcat is inside the firewall with multiple apps being virtual hosted through the…
Brett Ryan
  • 26,937
  • 30
  • 128
  • 163
5
votes
7 answers

Apache with JBOSS using AJP (mod_jk) giving spikes in thread count

We used Apache with JBOSS for hosting our Application, but we found some issues related to thread handling of mod_jk. Our website comes under low traffic websites and has maximum 200-300 concurrent users during our website's peak activity time. As…
Ashish Jain
  • 4,667
  • 6
  • 30
  • 35
5
votes
2 answers

Error with an Apache in front of Tomcat using AJP connector and mod_proxy

I've a Apache Server (Server version: Apache/2.2.22 (Ubuntu)) in front of a set of three tomcat6 servers. Apache is set up as a load balancer using mod_proxy and the AJP connector: ProxyRequests off
Curro
  • 1,331
  • 1
  • 13
  • 24
5
votes
3 answers

Implementation of AJP protocol in Java

From Apache, you can use the "mod_jk" module to send HTTP requests to Tomcat using the "AJP" protocol, which is far more efficient that HTTP itself. I want to do the same, but from a Java program. I want to use "AJP" because of its good performances…
Zappa
5
votes
1 answer

Forward REMOTE_USER to tomcat via AJP (e.g. for shibboleth)

Today I just got stuck with the following problem: 1. I configured apache for basic authentication (require valid user); which worked. 2. I further configured apache to forward requests for some path (/idp in my case) to a tomcat servlet (shibboleth…
SDwarfs
  • 3,189
  • 5
  • 31
  • 53
5
votes
2 answers

How do ensure that Apache AJP to Tomcat connection is secure/encrypted?

We want to front-end our Tomcat instance with an Apache instance (running on the same machine) that will be serving everything on HTTPS and connect Apache to Tomcat using AJP. When using AJP, do we need to do anything to make sure that the…
BestPractices
  • 12,738
  • 29
  • 96
  • 140
4
votes
1 answer

debugging ajp on tomcat

tomcat 6.0.30 crashes whenever apache http server forward the web request to it via ajp. It by itself is fine to handle the same request via http 8080. how do I debug this problem? what could be the problem?
user121196
  • 30,032
  • 57
  • 148
  • 198
4
votes
2 answers

secondary ajp worker not working between apache and tomcat

I've had this working for months but I had a power cycle today and something broke. Sorry, this is a bit detailed and specific, but I'm desperate for help. I have apache-2.2 and two tomcat-6 servers (simply running from two separate folders). I…
rjcarr
  • 2,072
  • 2
  • 22
  • 35
1
2
3
16 17