Rewrite-real-path
From Resin 3.0
tags
tag | description |
---|---|
rewrite | directs rewrite-real-path to rewrite the URL and continue processing |
regexp | the regular expression matching the URL |
replacement | the replacement pattern for the url |
real-path | completes the rewriting for a real-path |
target | the target path |
example
The following example directs the /static URL and its children to an external directory /var/www/static
<web-app xmlns="http://caucho.com/ns/resin"> <rewrite-real-path> <real-path regexp='^/static' target='/var/www/static'/> </rewrite-real-path> </web-app>