I recently updated my article on configuring Installing and Configuring ColdFusion MX 6.1 Multiple Instances with IIS and Apache Virtual Hosts. There was a problem with the Apache configuration causing errors. There was an issue highlighted on Steven Erat's blog pointing out that the JRunConfig Apialloc setting must be set in the Virtual Host for second instance, and must be set to false. If not, one in every 4 or 5 requests will return an Apache Internal Server Error to the client with a 500 status code and the Apache error log will record a message such as:
[Thu Jun 24 15:09:33 2004] [notice] jrApache JRun will not accept request. Check JRun web server configuration and JRun mappings on JRun server.
The article can be found on macromedia.com. There was only one page updated that dealt with the apache configuration.
So a bit related - have you ever figured out how to get Apache to do the following:
Use virtual hosts If a CFM file is not found, fire off the Apache 404 handler.
This is easy in IIS - you simply tell IIS to check for script existence. I have yet to find a way to get Apache to do this.
Just wrote a fairly big comment here and hit cancel by mistake. One more reason to hate popup windows.
ok here goes second time...
I've been running multiple Apache virtual hosts with multiple CFMX instances on JRun in my dev environment since about the start of this year.
For the first month or so I was experiencing the type of thing you describe with the Apache errors.
I reinstalled my CFMX instances and carefully checked the logs to see what was happening. It turned out that the JRun Web proxy service wasn't automatically starting when the CFMX instance was started. Once I'd manually started it, I found that it automatically started every time the services were cycled, or the machine was rebooted.
I don't have any JRun Apialloc settings in any of my virtual hosts and I haven't had a single error since I tracked down the cause of the issue and started the proxy service in each of the instances.