legacy-knowledge-base
公開されました Sep. 10, 2025

portal-ext.properties を使用してポータルから WebDAV URL を無効にする

written-by

Sivakumar Perumal

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ポータル内のユーザーがWebDAVのURLを知っていれば、そのユーザーの側で同じように設定することができ、ローカルマシン自体からドキュメントライブラリを管理することができます。 したがって、どのようにWebDAVのURLを制限することができますか?

環境への配慮

  • Liferay 6.2 EE

決議

  • Liferayでは、portal-ext.proeprtiesに以下のようなプロパティを設定することで、WebDAVのURLへのアクセスを制限するプロパティを用意しています。

    #### WebDAV Servlet

    # See the properties "main.servlet.hosts.allowed" and

    # "main.servlet.https.required" on how to protect this servlet.

    webdav.servlet.hosts.allowed=
    上記の「main.servlet.host.allowed」を見てみると、以下のように定義されています。


    # このサーブレットにアクセスできるカンマ区切りのIPのリストを入力してください
    # SERVER_IPはホストサーバのIPに置き換えられます。


    楽にするために。

    webdav.servlet.hosts.allowed=127.0.0.0.1

    上記プロパティを追加すると、上記のIPアドレスにのみWebDAVのURLがアクセスできるようになります。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base