In response to whartung's comment ("This bites me EVERY SINGLE TIME"):
Try the following rule: An alternate docroot path is computed by appending the request's path info (as obtained by calling HttpServletRequest.getPathInfo()) to the value of the "dir" attribute of the alternate docroot property whose "from" value was matched.
Therefore, given an alternate docroot of:
<property name="alternatedocroot_1" value="from=/orderstore/* dir=C:/stryker_cci/orderstore"/>
and a request of the form
http://localhost/CIWeb/orderstore/test.txt
where /CIWeb is the request's context root, and /orderstore/test.txt the request's path info, the resulting alternate docroot is given as the "dir" path:
C:/stryker_cci/orderstore
concatenated with the request's path info:
/orderstore/test.txt
as you had correctly pointed out.
If you follow this rule, there should not be any ambiguities.
Let me know if you have any questions.
Thanks,
Jan
[Message sent by forum member 'jluehe' (jluehe)]
http://forums.java.net/jive/thread.jspa?messageID=252325