How to use mod_proxy to let my index of Apache go to Tomcat ROOT and be able to browse my other Apache sites

Posted by Dagvadorj on Server Fault See other posts from Server Fault or by Dagvadorj
Published on 2010-02-17T07:54:44Z Indexed on 2013/10/27 9:57 UTC
Read the original article Hit count: 228

Filed under:
|
|

I am trying to use my Tomcat application (deployed at ROOT) to be viewed from Apache port 80. To do this, I used mod_proxy, since mod_jk made me try harder.

I used sth like this in httpd.conf:

<location http://www.example.com>
   Order deny,allow
   Allow from all
   PassProxy http://localhost:8080/
   PassProxyReverse http://localhost:8080/ 
</location>
<Proxy *>
   Order deny,allow
   Allow from all
</Proxy>

And now I can not retrieve my previous sites on Apache, which was running prior to my configuration.

How can I have both running?

© Server Fault or respective owner

Related posts about apache2

Related posts about tomcat