[EMAIL PROTECTED] Selectively forward trafic from Apache to Tomcat

2006-11-29 Thread Ian Coal
Hi all, Trafic from a rich client consists of requests for static ressources like *.png and requests for dynamicaly generated templates. Requests like this: http://localhost/project/com/project/imgs*.png would retrieve the files from the filesystem where apache runs and

Re: [EMAIL PROTECTED] Selectively forward trafic from Apache to Tomcat

2006-11-29 Thread Gregor Schneider
http://tomcat.apache.org/connectors-doc/ cheers Greg -- what's puzzlin' you, is the nature of my game - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html

Re: [EMAIL PROTECTED] Selectively forward trafic from Apache to Tomcat

2006-11-29 Thread toadie D
I think you could do that via mod_rewrite RewriteRule ^/project/(.*)/dynamic/(.*) http://tomcat/project/$1/dynamic/$2 [proxy,last] RewriteRule ^/project/(.*) http://apache/project/$1 [passthrough,last] You also need to define a Directory or Location for your local static files on Apache

Re: [EMAIL PROTECTED] Selectively forward trafic from Apache to Tomcat

2006-11-29 Thread Gregor Schneider
This wont work. Ian asked if both (Apache Tomcat) could be configured to listen on the same port, and the anser here is definately a NO. What you can do is use the connector JK 1.2, run Apache in front, Tomcat on port i.e. 8009. JK then will forward the specified requests to Tomcat, similar to

Re: [EMAIL PROTECTED] Selectively forward trafic from Apache to Tomcat

2006-11-29 Thread Gregor Schneider
Forgot to mention that Ian asked in the Tomcat-userlist if he could run both on the same port (check for the post Can Apache and Tomcat both be configured in port 80?) Sorry, forgot to mention that Greg -- what's puzzlin' you, is the nature of my game