I've got virtual hosts running on Apache with Tomcat running for JSP pages. Tomcat is runnign as the tomcat user, with a nobody group. There are files generated by Tomcat that get created as the tomcat:nobody user but then these files cannot be found by apache to serve them to the web user, so I get 404 errors.
NOTE: The JSPs are working correctly. It is the files created by Java that then are not accessible.
If I manually change the tomcat:nobody files to webuser:webuser (or whatever the virtual host user is), then apache finds the files. However, this obviously cannot be done manually for an on-demand process.
How can I get these automatically generated files to load via Apache if they are created inside tomcat?