chkal/pf-issue-test — Issue #57: Allow serving of files outside the document root
Author: chkal
Created: 2012-03-06 07:25:39+00:00
State: open

Originally filed by **dominik....@gmail.com** on 2010-07-25T12:30:43

Google Code issue: http://code.google.com/p/prettyfaces/issues/detail?id=57

I want to serve files from a folder outside my webapps document root.
Currently, there are ways todo this but they are all container specific, e.g. Glassfishs alternatedocroot directive (http://docs.sun.com/app/docs/doc/820-4496/geqpl?l=en&a=view)

so basically what I want would be a mapping

/images/* => /var/www/myimages/

which would then result in

/images/1.gif being server from /var/www/myimages/1.gif

This would normally be done by a custom servlet or container specific extensions (see above) but as PrettyFaces already looks on every request, it may be a nice feature for a variety of users.

Please tell me your thoughts.