Let me add one more wrinkle, and see if it's doable in LSWS without a lot of pain. As mentioned above, I would like to support a large number of virtual hosts of the form '*.foo.com'.
Ex: bar.foo.com, baz.foo.com, goo.foo.com, etc.
If the url is for static content, I would like LSWS to serve the content directly. Otherwise, I would like LSWS to forward the request to a Java back-end for processing via AJP.
It would be easier to host static content directly on another domain (img.foo.com), but that may not be possible short-term. If I stick to the same consistent layout in the vhosts for static content (*.foo.com/img), would the rewrite module be a complete solution?
Any thoughts appreciated...