Questions tagged [mod-proxy-ajp]
56 questions
1
vote
1 answer
Load balancing based on client certificate with Apache mod_proxy_ajp and Tomcat
Currently, I am using mod_proxy_ajp to load balance requests to multiple Tomcat servers. Callers are authenticated using client certificates and an ACL. This has been working fine, callers are routed to either server at an even rate. Now I want to…

John in MD
- 221
- 2
- 9
1
vote
1 answer
How to configure mod_proxy_ajp to give different permissions to different apps in one virtual host?
On my server I have two tomcat applications: 'hidden' and 'open'. The hidden application should only be available for the local network 192.168.0.0. The open app should be available for all networks.
The Applications run on Tomcat 7.0.6 and the…

oli
- 31
- 5
1
vote
1 answer
Equivalent of JkMount with AJP in Tomcat 6
It is my understanding that JkMount is deprecated and no longer used in tomcat6. How would I make the following rule with only ajp?
JkMount /*/servlet/* ajp13

The Digital Ninja
- 764
- 4
- 10
- 25
0
votes
1 answer
Apache, mod_proxy_ajp and IE
I have an Apache 2.2 using mod_proxy_ajp as a reverse proxy for a Tomcat 6, running on RHEL5. On tomcat runs an application that does NTLM authentication.
Using Firefox, everything works ok, but IE7 says "cannot display the web page". Without…

user27451
- 1,161
- 2
- 11
- 14
0
votes
1 answer
Redirect https and http requests to my web app in tomcat from apache
I have a spring web application running in tomcat which I can access using https://example:8080/myApp. I have installed Apache2 to redirect port 443 requests to tomcat. now I can Access my application without the port number. I have installed SSL…

Sony
- 103
- 1
- 7
0
votes
2 answers
Connection reset by peer: ajp_ilink_receive() can't receive header
I am seeing this in Liferay 6 (a Tomcat-based clustered webapp)'s log:
APR does not understand this error code: proxy: read response failed from [::1]:8009 (localhost)
The timeout specified has expired: ajp_ilink_receive() can't receive…

Nicolas Raoul
- 1,334
- 7
- 22
- 43
0
votes
1 answer
Apache's ProxyPreserveHost before tomcat using AJP
I'm trying to put an Apache server in front of a Tomcat server.
Apache's documentation states regarding the ProxyPreserveHost option: When enabled, this option will pass the Host: line from the incoming request to the proxied host, instead of the…

Bernhard Döbler
- 111
- 7
0
votes
1 answer
apache_mod_proxy & tomcat7 socket timeout
I've configured Apache tomcat7 as backend & apache2.2 as frontend both on same CentOS 6 server & here is part of my configurations:
In Server.xml I have:

Ehsan Khodarahmi
- 305
- 1
- 7
- 18
0
votes
2 answers
How do I configure Apache to proxy Tomcat using AJP?
I have a fresh install of Fedora 23 (Workstation) with fresh installs of Apache 2.4 and Tomcat 8.
I'm attempting a very simple setup: A single instance of Apache will proxy all traffic for a single instance of Tomcat.
In Apache's httpd.conf I've set…

JonahHuron
- 101
- 1
- 2
0
votes
1 answer
How to configure apache proxy with 2 contexts: "/" and "/dev"
I have 2 AJP services running in my server and a Apache 2.4 to proxy then.
I want to map this:
# in-development environment
ProxyPass ajp://127.0.0.1:3001/dev/
# in production environment
…

Beto Neto
- 595
- 1
- 4
- 11
0
votes
2 answers
Strip Tomcat Headers With Apache, then Cache Resources To Disk?
I've got mod_disk_cache working great in Apache. It's caching some of the requests coming out of Tomcat. But for various reasons I won't go into, we can't get Tomcat to drop the Expires and Cache-Control headers on other pieces of content. These…

yetimoner
- 151
- 1
- 7
0
votes
0 answers
Is there a way to redirect HTTP to HTTPS using mod_proxy_ajp or this could be done only at mod_rewrite side?
What is the easiest way to redirect http to https when mod_proxy_ajp is used?
I have the configuration below for mod_proxy_ajp:
ProxyPass /home ajp://localhost:8080/home
ProxyPassReverse /home ajp://localhost:8080/home
I was hoping if there is a…

JonathanC
- 1
- 1
0
votes
1 answer
Zombie connections on tomcat server while using mod_proxy_ajp
I'm using tomcat server 7 with apache mode_proxy_ajp module to serve a website. Here is my ajp connector config:

Ehsan Khodarahmi
- 305
- 1
- 7
- 18
0
votes
1 answer
AJP Connector Apache-Tomcat with php and java application
I have a question about proxy and ajp module.
On my machine I have a Apache web server and a Tomcat servlet container.
On Tomcat is running a my java webapplication.
On Apache I have some services and I can call these in this…

Safari
- 155
- 1
- 2
- 7
0
votes
2 answers
Glassfish3 Apache mod_proxy_ajp and missing headers
I got Apache 2.2.22 with mod_proxy and mod_proxy_ajp.
Here is my configuration of mod_proxy:
ProxyRequests Off
ProxyPreserveHost On
ProxyErrorOverride On
ProxyPass / ajp://localhost:8009/
ProxyPassReverse /…

m-szalik
- 123
- 3