legacy-knowledge-base
公開されました Jun. 30, 2025

WebDAV経由でLiferay DLに接続するとアクセスが拒否される

written-by

Cristina Rodriguez

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機能を使ってLiferayのドキュメントライブラリに接続しようとすると、'Access Denied'または同様のエラーが表示されます。

Environment

  • Liferay LXC-SM
  • ウェブサーバレベルで基本認証が有効になっている。

解決策

  • LXC-SMでWebDAVを動作させるには、NginxのBasic Authを無効にする必要があります。 このBasic AuthはLiferayサービスレベルでのみ必要です。
  • webserver/configs/{env}/conf.d/liferay.conf ファイルの関連する行を削除するだけです:
location / {
# auth_basic "Authentication Required";
# auth_basic_user_file /var/www/html/.htpasswd;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $http_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_hide_header liferay-portal;
proxy_pass http://upstream_server;
proxy_http_version 1.1;
proxy_intercept_errors on;
}

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base