-   Linux - Newbie (
-   -   Redirecting Apache website to Tomcat (

mlnm 05-25-2012 02:43 PM

Redirecting Apache website to Tomcat
I'm running Apache2.2.3 and Tomcat 7 on my RHEL5 Linux box. Apache2.2.3 is running on the default port 80, Tomcat is running on port 8080.

What I'd like to do is to redirect an incoming request from apache to Tomcat.

For example, say I have, and I also a web application with jsps. The web application is currently up and running on Tomcat so I can access the web application as path. would serve the same content as www. path.

acid_kewpie 05-25-2012 02:58 PM

ProxyPass /
ProxyReversePass /

see the mod_proxy documentation for further uses of apache as a reverse proxy.

Alternatively look at mod_jk or mod_proxy_ajp

mlnm 05-30-2012 10:41 AM

thank u for your reply and sorry that i couldn't get back to you quickly,i managed to redirect Apache to tomcat,but the query goes to the ROOT directory and default tomcat page opens,but my web application is in webapps,and i tried the following in httpd.conf file:
Proxy Pass /webapp name ajp://localhost:8009/webapp name
Proxy PassReverse /webapp name ajp://localhost:8009/webapp name
Please provide me with the correct format of directing to my webapp.

All times are GMT -5. The time now is 07:02 PM.