Translated message

A translation of this page exists in English.

EAP 7 のファイルハンドラーでシンボリックリンクのサポートを有効にする方法

Solution In Progress - Updated -

Issue

undertow サブシステムで以下のカスタムファイルハンドラーを有効化し、EAP 7 の特定のパスから静的コンテンツを提供できるようにしました。

        <subsystem xmlns="urn:jboss:domain:undertow:4.0">
...
<server name="default-server">
<http-listener name="default" socket-binding="http" ... />
...
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content" />
<location name="/example" handler="example-file-handler" /> <!- added this -->
</host>
</server>
...
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content" />
<file name="example-file-handler" path="/path/to/example/static-contents" /> <!- added this -->
</handlers>

しかし、ディレクトリー内のシンボリックリンクはファイルハンドラーを介して機能せず、EAP 7 ではシンボリックリンクの下の静的コンテンツにアクセスできません (404 not found が返されます)。

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content