You are here

How to map the Tomcat context to Apache web server?

Once the Tomcat is ready, you have to map the Tomcat context to the Apache web server using the proxy_ajp module. Please update the file "/opt/rh/httpd24/root/etc/httpd/conf.d/proxy_ajp.conf" to map the URL to Tomcat by adding the line (pls refer to the example in this configuration file):
ProxyPass /path_to_context/ ajp://localhost:8009/context/

such that the tomcat application can be accessed through the URL http://www.<domainname>.hku.hk/path_to_context/ after restarting the web server.
 

Service Category: