Url rewriting 使用undertow文件处理程序重写URL

Url rewriting 使用undertow文件处理程序重写URL,url-rewriting,wildfly-8,undertow,Url Rewriting,Wildfly 8,Undertow,我目前正在尝试对通过本地文件系统的文件处理程序交付的内容使用URL重写。似乎没有这方面的文档和/或功能。我想我可以使用war文件(如本论坛所回答的)但不幸的是,这对我的东西不起作用 我的配置如下所示 <server name="default-server"> <http-listener name="default" socket-binding="http" max-post-size="51200000" max-parameters="10000"/>

我目前正在尝试对通过本地文件系统的文件处理程序交付的内容使用URL重写。似乎没有这方面的文档和/或功能。我想我可以使用war文件(如本论坛所回答的)但不幸的是,这对我的东西不起作用

我的配置如下所示

<server name="default-server">
    <http-listener name="default" socket-binding="http" max-post-size="51200000" max-parameters="10000"/>
    <https-listener name="https" socket-binding="https" max-post-size="51200000" max-parameters="10000" security-realm="UndertowRealm"/>
    <host name="default-host" alias="localhost">
        <location name="/" handler="welcome-content"/>
        <access-log rotate="true"/>
        <filter-ref name="server-header"/>
        <filter-ref name="x-powered-by-header"/>
        <filter-ref name="connection"/>
    </host>
</server>
<servlet-container name="default">
    <jsp-config/>
</servlet-container>
<handlers>
    <file name="welcome-content" path="C:/path/to/private/docroot"/>
</handlers>

我试图重建我的docroot,它看起来像一个公开的.war文件,因此我可以添加一个
WEB-INF/undertowHandler.conf
文件,其中包含以下规则:

regex['/Deploy/stuff/laptop/windows/(.*)/update.xml']->rewrite['/Deploy/stuff/laptop/windows/new update.xml']

但这一文件和/或规则显然被忽视了


非常感谢您的帮助。

它应该是
undertowhandlers.conf
,带有
s