Rule Examples
path('/healthcheck') -> rewrite('/healthcheck.cfm')path(/healthcheck) -> done
path(/healthcheck) -> response-code(503) // This rule is skippedmethod(GET) -> set(attribute='%{o,type}', value=get)regex('(.*).css') -> { rewrite('${1}.xcss'); set(attribute='%{o,rewritten}', value=true) } regex('(.*).jpg$') -> redirect('${1}.png')set(attribute='%{i,someHeader}', value=someValue)path-template('/product/{productid}') -> set(attribute='%{i,productid}', value='${productid}')path(/foo/a/b) -> response-code(503)
path(/restart) -> { rewrite(/foo/a/b); restart; }Last updated
Was this helpful?