現在、ローカル ファイル システムからファイル ハンドラーを介して配信したコンテンツに対して URL 書き換えを使用しようとしています。これに関するドキュメントや機能はないようです。war ファイルを使用するとうまくいくと思いますが (このフォーラムで回答されているようにhttps://developer.jboss.org/message/915980 )、残念ながらこれは私のものでは機能しません。
私の構成は次のようになります
<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>
公開された .war ファイルのように見える docroot を再構築しようとしたのでWEB-INF/undertow-handler.conf
、単純に次のルールを含むファイルを追加できました。
regex['/Deploy/stuff/laptop/windows/(.*)/update.xml'] -> rewrite['/Deploy/stuff/laptop/windows/new-update.xml']
しかし、このファイルやルールは明らかに無視されているようです。
どんな助けでも大歓迎です。