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
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión