Hi,

I had a problem with getting Apache and Tomcat to share the same document root
cleanly, with Apache serving requests that were outside Tomcat's perview (e.g.
static pages, PHP).

Essentially, I have a system with Apache2 doing name based vhosting, with a tree
that looks something like this:

DocumentRoot -> /www
Customer1 DocumentRoot -> /www/cust1
Customer2 DocumentRoot -> /www/cust2
...


and I wanted each customer to be able to place a JSP page anywhere in their
portion of the tree and have Apache pass the request to Tomcat. I only wanted a
single instance of Tomcat running at one time.

My question is, is this possible to do with mod_jk?

My current solution is to use mod_webapp, which I hacked up to be a little more
selective, so I have for each vhost an entry like this in httpd.conf:

<VirtualHost *>
    DocumentRoot /www/custX
    ServerName foo.bar.baz:80
    ...
    WebAppDeploy custX warpConnection /
</VirtualHost>

But have mod_webapp return(DECLINED) if the request uri doesn't end in .jsp.
Is this the best way to do it, and if so should I formalize it into a patch
against the latest mod_webapp, with a new configuration directive?

Sorry for the rambling nature of my question, and thanks in advance,
C.Davies




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to