Apache experts..?

Show off new creations, get help, or just chat about all aspects of web development and design.

Apache experts..?

Postby Blink on Mon Nov 19, 2007 10:39 am

Wondering if any of the lopers have skills with Apache webservers, if so I could use some help.

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?
User avatar
Blink
Cool 'n that
Cool 'n that
 
Joined: Fri Oct 08, 2004 4:16 pm
Location: UK

Return to Web Design & Development

Who is online

Users browsing this forum: No registered users