lhecking@users.sourceforge.net wrote:
I'm going to retire an old RHEL3 server and move the services to CentOS5. In particular, the web server is giving me a headache. On the old box, there's a hacked-up httpd/mod_jk/tomcat setup, and CentOS is perfect for the new box because the required components are included and the whole setup "just works" straight from installation.
There seems to be surprisingly little documentation or how-tos on how to migrate from the above setup to httpd/mod_proxy_ajp/tomcat. I believe I have it working correctly on a test machine, but am looking for someone to look over the config to make sure it's correct and complete.
The desired setup is:
- httpd receives all requests
- httpd processes all requests for static content
- httpd passes all requests for dynamic content to tomcat
Most examples I found seem to assume that all queries, including static, are pased on to tomcat. To implement the correct behaviour, I came up with this conf.d fragment:
You might also want to ask this question on the Tomcat users mailing list, users-subscribe@tomcat.apache.org
I hope you'll post the outcome of your research.