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 Apache, IE7 works fine. What is going on here? Unfortunately, I have very limited … Read more

How to prevent non-https hits to tomcat apps via apache mod_proxy_ajp?

I’m configuring an Apache 2.2 front end to pass through specific apps to Tomcat via mod_proxy_ajp. Some of these apps, like the login/auth service, I want to enforce accepting HTTPS hits only. My httpd-proxyajp.conf file has stanzas in it like this per app: ProxyPass /auth-1.0 ajp://localhost:8009/auth-1.0 ProxyPassReverse /auth-1.0 ajp://localhost:8009/auth-1.0 <Proxy /auth-1.0> Order Deny,Allow Allow from … Read more

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 –http 9080 –ajp 9009 –shutdown 9005 When i configure a load balancer in front of these nodes (httpd 2.2.15 on a centOs server) on two … Read more

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 rewrite so when they type http://mydomain.com it gets redirected to http://mydomain.com/myapp. I just enable modwrite, … Read more

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> ServerName www.example.com ProxyRequests Off ProxyPreserveHost On <Proxy *> AddDefaultCharset Off Order deny,allow Allow from all </Proxy> ProxyPass / ajp://localhost:8081/example/ ProxyPassReverse / ajp://localhost:8081/example/ <Location /> … Read more

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 / http://www.myservice.com/ Generally it works fine but when you look at logs of mod_proxy you can see that few http headers are missing. Header[0] [Host] = [www.myservice.com] Header[1] [User-Agent] = [Mozilla/5.0 … Read more

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 way to do the redirect here, instead of doing it in the /etc/httpd/conf configs. Answer AttributionSource : Link , Question Author … Read more

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 headers are set to no-cache and 0. I need to modify or drop … Read more

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 ServerName localhost. It includes the proxy configuration file conf.modules.d/00-proxy.conf. In that … Read more

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=”AJP/1.3″ redirectPort=”8443″ connectionTimeout=”600000″ maxKeepAliveRequests=”100″ URIEncoding=”UTF-8″/> & in httpd.conf: ProxyRequests Off Timeout 600 ProxyTimeout 600 ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ The problem is that some servlets … Read more