I was able to get things to work with 1 remaining issue.

First, installed mod_proxy_ajp. Then, I modified the server.xml file to include:

<Connector port="8009" enableLookups="false" protocol="AJP/1.3" 
redirectPort="8443" URIEncoding="UTF-8"/>

Then, I commented out all the previous mod_jk configuration settings in the Pre 
Main Include in httpd.conf file, and inserted the following:

ProxyPassMatch ^/(nameOfMyApp)(.*) ajp://localhost:8009/$1$2 ttl=120 ping=1

Restarting Tomcat and Apache gave successful results. However, I previously 
also had the following 2 lines of code inside the include file:

# Ensure Apache will listen on the local IP address for the cross-over cable:
Listen 192.168.0.2:80
Listen 192.168.0.2:443

To make things work, I had to comment these 2 lines out, otherwise Apache would 
not start. My application and database servers sit next to each other in the 
datacenter, connected by a cross-connect cable, so that their traffic doesn't 
need to cross the world to find each other through the Internet. Anyone know 
why this gets broken going to EasyApache 4, and how to resolve?


> On November 2, 2019 at 2:06 PM gkk gb <[email protected]> wrote:
> 
>     I had a CentOS 7.7 with Tomcat 8.5.9 and mod_jk working fine, but after 
> updating to the latest Cpanel, which required installing EasyApache 4, mod_jk 
> no longer works (appears it is not compatible with EasyApache 4).
> 
>     I believe my next best option (correct me if wrong) is installing 
> mod_proxy_ajp. Can someone summarize what I need to do to get mod_proxy_ajp 
> installed and working in place of mod_jk?
> 
>     I'm a newbie, so please be explicit.
> 
> 


Reply via email to