Servlet Pass Predicate
Use a servlet pass predicate to define which requests should be forwarded to the servlet
regex( '^/(.+?\\.cf[cm])(/.*)?$' )# Send ALL traffic to the servlet (the servlet's default handler will serve static files)
server set web.servletPassPredicate=true
# Only serve CF files out of the cgi folder
server set web.servletPassPredicate="regex( '^/cgi/(.+?\\.cf[cm])(/.*)?$' )"
# process CFM files or anything in the /REST/ directory
server set web.servletPassPredicate="regex( '^/(.+?\\.cf[cm])(/.*)?$' ) or path-prefix-nocase( /REST/ )"Last updated
Was this helpful?