On Wed, Sep 28, 2011 at 11:21 PM, Brian E. Lozier <brian@massassi.com> wrote:
I think I understand what you're saying but I think you're misunderstanding the problem.  The problem is that he wants to mount TWO apps under different directories:

Indeed perhaps I'm misunderstanding.

/prefix1/
/prefix2/

But each of these apps are requesting images like /images/image1.png, and the images overlap.  He wants requests coming from /prefix1/ to service /prefix1/images/image1.png and requests from /prefix2/ to service /prefix2/images/image1.png even though there's no way to tell the server which "prefix" he's under given a request for /images/image1.png.

The solution would still be the same though. It's a server configuration problem.
Put the public directory outside the applications, set up the aliases to the same directory.
"Badaboom", as it were in The Fifth Element. :)