Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
Description
hi~
A URL in the form of "http://localhost/test1" should be rewritten to "http://localhost/abc/test1"
Configuration
Undertow Subsystem
<host ...
<filter-ref name="rewrite-test" predicate="regex('^/test(.*)$')"/>
...
<filters>
<rewrite name="rewrite-test" target="/abc/test${1}.jsp" redirect="false"/>
Problems:
server.log
WFLYUT0014: Creating file handler for path '/svc/eap71/was/wildfly-12.0.0.Alpha1-SNAPSHOT/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
2018-02-12 13:44:09,562 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool – 65) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "undertow"),
("configuration" => "filter"),
("rewrite" => "rewrite-test")
]) - failure description: "WFLYCTL0211: Cannot resolve expression '/abc/test${1}.jsp'"
Thank you