I have an AWS
deployment where I have a web-server (serving a PHP-based website) and an application server (serving JSP/Tomcat
based applications). The redirection from the webserver to the application server is made via AJP
over port 8009. This is specified in workers.properties
.
This works well when there is only one application server whose private IP is specified in the host
directive of workers.properties
.
This redirection fails the moment the application server is placed behind an ELB
. The redirection from PHP to Tomcat fails. What I have tried so far:
- Specified the
ELB
endpoint in theworkers.properties
file. - Changed all
JkMount
directives in thevirtualhost.conf
file toProxyPass
directives. The following is the change:
JkMount /application* tomcat1
to
ProxyPass /application ajp://ELBDNSName:8009/application
This too does not work.
How do I get the redirection to work properly?