I do something similar but the only way I have been able to make it work is by
doing a "subrequest", i.e. having the VH make a request to itself (or another
VH for that matter)
Here is an example to give you the general idea, at the expense of an extra
HTTP request:
<VirtualHost 1.2.3.4>
# RewriteCond to break recursion, RewriteRule proxies request to ourselves
prefixing the path with /path-prefix
RewriteCond $1 !^/path-prefix/
RewriteRule ^(.*)$ /path-prefix$1 [P]
RewriteRule ^/path-prefix/([^\/]+)/(.*)$
http://appserver/doit?arg1=$1&arg2=$2 [P,QSA]
<IfModule mod_cache.c>
<IfModule mod_mem_cache.c>
CacheEnable mem /path-prefix
</IfModule>
<IfModule mod_disk_cache.c>
CacheEnable disk /path-prefix
</IfModule>
</IfModule>
</VirtualHost>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]