I'm running normal Apache on Port 80 and Tomcat (for Java) on port 8080. My ultimate goal is to have normal site requests go into the Tomcat installation and have a rule that sends a request for forums to the htdocs folder in Apache to be served with PHP.
I know this is possible but it's proving elusive.
Been searching around and I've read that you can use ProxyPass in the VirtualHost section of httpd.conf to forward requests, so far I've got everything going through Apache into Tomcat like this:
- Code: Select all
<VirtualHost *>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
What I can't see next is an easy way to make exceptions to this rule, so that I can forward certain requests to the Apache folder to be served with PHP.
The other possibility is the mod_jk connector for Tomcat but that looks very involved and I'd like to avoid if possible.
It's a long shot, but any ideas?

