Skip to main content

Questions tagged [mod-proxy-ajp]

0 votes
1 answer
371 views

Apache2 VirtualHost RedirectPermanent and AJP Proxy Conflicts

It turns out that locations controlled by ajp ProxyPass on my site are being processed before the VirtualHost redirect, which came to my attention because google has indexed 25k+ pages at ardownload....
sgc's user avatar
  • 41
0 votes
1 answer
2k views

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 ...
Sony's user avatar
  • 103
0 votes
2 answers
19k views

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 ...
Nicolas Raoul's user avatar
1 vote
1 answer
675 views

Session Invalid when using AJP

I have the following setup: Apache running the front end (AngularJS) Tomcat 7 Running back end (Spring MVC, Spring Security) Apache Config <VirtualHost *:80> ServerAdmin webmaster@localhost ...
bwright's user avatar
  • 133
1 vote
3 answers
1k views

What should be configured in AJP proxy configuration?

I have Apache HTTPD server in our product and I need to add the AJP proxy to some specific application. The Tomcat AJP port is 8009 and the Tomcat HTTP port is 8080 (the SSL termination is in Apache)....
Michael's user avatar
  • 617
1 vote
1 answer
1k views

Tomcat to hadle only JSP - Apache proxy not working as expected

I've been given some source code for a PHP project that includes a .jsp file. I am able to run it as-is on my XAMPP set up on my Mac at work but I'm struggling to achieve the same on my Ubuntu setup ...
I wrestled a bear once.'s user avatar
0 votes
1 answer
2k views

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 ...
Bernhard Döbler's user avatar
0 votes
1 answer
762 views

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: <Connector port="8009" protocol="...
Ehsan Khodarahmi's user avatar
0 votes
2 answers
9k views

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 ...
JonahHuron's user avatar
0 votes
1 answer
490 views

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 <Location "/dev"> ProxyPass ajp://127.0.0.1:3001/dev/ </...
Beto Neto's user avatar
  • 615
1 vote
1 answer
1k views

Apache2 mod_proxy_ajp with Tomcat leads to 500 Internal Server Error

I am currently deploying a cloud server instance running Ubuntu 14.04. I have installed the LAMP Stack as well as Tomcat 7 Server. I want to run a Java Based App from this server and therefore any ...
realnsleo's user avatar
  • 117
0 votes
2 answers
931 views

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-...
yetimoner's user avatar
  • 151
1 vote
0 answers
75 views

tcpsndbuf causing max cpu load (using proxy_mod on openvz)

I do run a web application, which I stripped to the max to avoid a high tcpsndbuf values. Still a failcnt on tcpsndbuf will be reached after a few days and very, very little traffic. I initially ...
feder's user avatar
  • 111
1 vote
1 answer
3k views

How to get the remote user from httpd basic authentication in my tomcat servlet?

I've successfully configured mod_proxy_ajp from my httpd to Tomcat, with httpd performing the SSL and basic authentication. I need the remote user in my tomcat application, so I thought using AJP ...
dacracot's user avatar
  • 479
0 votes
0 answers
79 views

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://...
JonathanC's user avatar
  • 101
3 votes
1 answer
1k views

using apache2 mod_proxy(_balancer) for 3+3 tomcat failover configuration

we have got 3 active Tomcat instances, the load should be distributed evenly amongst them (sticky sessions via jvmroute, ajp). We also have got 3 failover Tomcat instances running. If one of the 3 ...
hey's user avatar
  • 369
2 votes
1 answer
2k views

Denying a User-Agent in apache that uses mod_proxy

I want to prevent web crawlers from using an apache site that is configured to forward all requests to a ProxyPass. I have tried the BrowserMatchNoCase directive to set an environment variable ...
Eric's user avatar
  • 31
1 vote
1 answer
1k views

What is causing Apache httpd (+mod_proxy_ajp) to drop connections

I have the following VirtualHost configured (Apache 2.2.22) <VirtualHost *:80> ServerName ************ ProxyRequests Off <Proxy *> Order deny,allow Allow from ...
jlb's user avatar
  • 123
10 votes
1 answer
42k views

mod_proxy_ajp (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header

I am using mod_proxy_ajp with Tomcat and I receive the following error: (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header How do I fix this?
DD.'s user avatar
  • 3,254
2 votes
0 answers
135 views

Enabling mod_spdy with mod_proxy_ajp to Tomcat

I am using mod_proxy_ajp to Tomcat. If I enable mod_spdy... Will this mean that connections over the proxy will be SPDY enabled?
DD.'s user avatar
  • 3,254
1 vote
1 answer
1k views

JBoss application behind apache ajp proxy with subdomain - duplicated context

In my application, I'm making some standard scenario where Java web app is deployed on JBoss with apache proxy upfront. The webapp is accessible from /esp context so direct url would be (but I've ...
kamil's user avatar
  • 341
0 votes
1 answer
898 views

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: <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" connectionTimeout="...
Ehsan Khodarahmi's user avatar
1 vote
0 answers
958 views

SSL exception "No name matching domain found" apache in front of 2 tomcats servers

I have 2 servers. Server1 is an Ubuntu 12.04 LTS with Alfresco 4.2 on Tomcat. Server2 is a Windows 7 with my CAS server (SSO) on eclipse installation. Both have apache with mod proxy AJP in front to ...
Design's user avatar
  • 11
2 votes
2 answers
4k views

How to diagnose Tomcat 6 suddenly stop responding?

I run a number of tomcat instances and occasionally some just stop reponding to requests - timeout on every connection. I'm using AJP with mod_proxy in Apache 2.2. I get a timeout via Apache/AJP ...
Nic Cottrell's user avatar
  • 1,332
0 votes
1 answer
773 views

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 ...
Safari's user avatar
  • 165
0 votes
2 answers
974 views

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://...
m-szalik's user avatar
  • 123
0 votes
1 answer
2k views

need help in redirect from Apache to Tomcat with mod_proxy_ajp

Im using mod_proxy_ajp to redirect from Apache to Tomcat. Apache is runnig on port 80 and tomcat ajp connector set on port 8081. here is my virtual host configuration: <virtualHost *:80> ...
zhozhe's user avatar
  • 103
0 votes
1 answer
450 views

mod rewrite on apache on virtualhost to point to jboss

I set my apache server with ajp to connect to my jboss server and it is working fine. But when I go to my domain http://mydomain.com, I see the jboss root page. I was wondering if I could use mod ...
Juan Diego's user avatar
0 votes
1 answer
357 views

Two tomcat 7 instance running on same machine not accepting requests on AJP connector

I have setup a tomcat cluster with session replication running on same machine. I have modified the connector and shutdown ports as node1 --http 8080 --ajp 8009 --shutdown 8005 node2 --...
Prasenjit Purohit's user avatar
2 votes
3 answers
14k views

How to restrict particular URL using Apache ajp Reverse Proxy

I'm using Apache Reverse Proxy, following is some of Apache Virtual Host configuration: ProxyRequests Off <Proxy *> AddDefaultCharset off Order deny,allow ...
Mahesh.D's user avatar
  • 127
0 votes
1 answer
14k views

Apache Reverse Proxy via mod_proxy_ajp not routing requests to Tomcat

I have two instances of Apache and Tomcat7 installed. One on my Macbook Pro with Mountain Lion and the other in a VirtualBox VM on that Mac with Ubuntu Server 12.10. Both have the same VirtualHost ...
Darrell Brogdon's user avatar
1 vote
0 answers
211 views

proxy ajp single apache single glassfish multiple GF domains

I'm sorry if I am not well versed enough to be as specific as some would wish here. I have successfully got Apache mod_proxy_ajp working with Glassfish 3.1.2 on a VPS. However it is one Apache httpd ...
Bill Rosmus's user avatar
1 vote
1 answer
7k views

Cisco adaptive security appliance is dropping packets where SYN flag is not set

We have an apache instance sitting inside our DMZ which is configured to proxy requests to an internal NATed tomcat instance inside our network. It works fine, but then all of a sudden requests from ...
Brett Ryan's user avatar
0 votes
3 answers
7k views

Jboss unreachable/ slow behind apache with ajp

I have an linux server running with a JBoss Instance with apache2. Apache2 will use AJP connection to reverse proxy to JBoss. I found these messages in the apache error.log: [error] (70007)The ...
Niels's user avatar
  • 841
1 vote
1 answer
825 views

Existing connexion on Apache and mod_proxy_balancer don't fail over second JBoss node

I have a Jboss farm, load balanced by Apache HTTP + mod_proxy_balancer and mod_proxy_ajp, with the following configuration : <VirtualHost *:80> ServerName web-gui-acceptance.myorg.com ...
Jean-Rémy Revy's user avatar
1 vote
1 answer
568 views

Glassfish JSF/EAR Apache 2.2 proxy_ajp_mod Referred Content Missing (images/links/etc)

Full disclosure: Since this seems to be more of a configuration issue, I deleted this from Stack (where it wasn't getting any response) and reposted here. The problem is how to change the ...
Bill Rosmus's user avatar
1 vote
1 answer
3k views

Apache2 mod_proxy to remote Tomcat7 - slow response

Been stuck with this one for a few days. Will try to provide as much information as possible, but please feel free to ask for extra detail. I have 2 VMs behind a NAT, 192.168.0.100 and 192.168.0.102, ...
12N's user avatar
  • 23
0 votes
1 answer
3k views

Apache ajp reverse proxy redirect a specific page to https

I have apache load balancing reverse proxy with mod_proxy_ajp running and redirecting to the backend tomcat servers. I have also created a separate virtual host for HTTPS(SSL) along with HTTP virtual ...
user53864's user avatar
  • 1,753
1 vote
1 answer
774 views

Tomcat Workers - Connecting Tomcat and Apache

I'm trying to resolve an issue about connecting Apache-HTTPD and Tomcat with mod_proxy_ajp. From reading I found that the problem might be the number of workers in HTTPD and Tomcat. So I try to find ...
jack smith's user avatar
1 vote
1 answer
778 views

Reverse Proxy and Java Application Server Security

Is it possible to have the reverse proxy (Apache HTTP 2.2) handle authentication (HTTP Basic) and then still use the container managed security of the Java application server (GlassFish 3.1 or JBoss 7....
Ryan's user avatar
  • 450
6 votes
1 answer
18k views

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 ...
rustyx's user avatar
  • 1,989
1 vote
1 answer
994 views

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 ...
John in MD's user avatar
2 votes
0 answers
1k views

Long running process times out through an apache proxy but not when bypassing the proxy

So I have this tomcat based webapp. Part of this webapp lets you upload a file that then is checked against a backend database. This process takes a long time, up to 15 minutes in some cases. Now ...
Dan R's user avatar
  • 255
2 votes
1 answer
2k views

How does Apache mod_proxy_ajp work when Jboss runs as a cluster with AJP on 2 different ports?

I am trying to get an Apache webserver to load balance to a JBoss cluster, but unfortunately, I dont understand how mod_proxy_ajp works through the load balanced scenerio, since each of the 2 ...
djangofan's user avatar
  • 4,240
2 votes
3 answers
5k views

Why do some rewrite rules fail while AJP is serving all of my requests to Tomcat?

I have a Apache server using mod_proxy_ajp to have Jboss/Tomcat5.5 handling all the requests. Here is how I configured Apache 2.2.17, and for the most part, it works: # Proxy pass all work to Tomcat,...
djangofan's user avatar
  • 4,240
1 vote
1 answer
527 views

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. ...
oli's user avatar
  • 31
2 votes
1 answer
226 views

Change hostname in hyperlinks in email generated by Atlassian Confluence

I have an instance of Atlassian Confluence fronted by Apache using mod_proxy_ajp to pass inbound port 80 requests to 8080 on tomcat. Let's say the url users use is http://www.mywiki.com/confluence/. ...
ed209's user avatar
  • 392
0 votes
2 answers
1k views

proxy_ajp wildcards

I need to setup apache so that any site.com/ANYTHING/servlet/ANYTHING goes over ajp into tomcat, but regular files will go through apache still. I have been messing around with this to no avail <...
The Digital Ninja's user avatar
1 vote
1 answer
1k views

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's user avatar
0 votes
1 answer
2k views

Apache, Tomcat 5 and problem with HTTP basic auth

I have setup a Tomcat with a webapp that uses http basic auth in some of its URLs. There is a Apache server in front of the Tomcat. I have setup Apache as a proxy like this (all traffic should go ...
Juha Syrjälä's user avatar