Legacy Knowledge Base
Published Jun. 30, 2025

Access denied when connecting to Liferay DL through WebDAV

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • An 'Access Denied' or similar related error is shown when you try to connect to Liferay's Document Library from your Operating System through WebDAV functionality.

Environment

  • Liferay PaaS
  • Basic Authorization enabled at Webserver level.

Resolution

  • In order to make WebDAV work in Liferay PaaS, you need to disable Basic Auth in Nginx. This Basic Auth is only needed at Liferay service level. 
  • You can do so by simply removing the related lines in your webserver/configs/{env}/conf.d/liferay.conf file:
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;
}

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base