legacy-knowledge-base
Publicado Sep. 25, 2010

Disabling the WebDAV URL from Portal through portal-ext.properties

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

Issue

  • If any of the users in the portal knows the WebDAV URL, they can configure the same at their end and they can manage the Document Libraries from their local machine itself. Hence, how can the WebDAV URL be restricted?

Environment

  • Liferay 6.2 EE

Resolution

  • Liferay has provided the property to restrict the access of the WebDAV URL by configuring the below property in portal-ext.proeprties.

    #### WebDAV Servlet

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

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

    webdav.servlet.hosts.allowed=
    When you looked at the above mentioned "main.servlet.host.allowed" the definition is as follows

    # Input a list of comma delimited IPs that can access this servlet
    # Input a blank list to allow any IP to access this servlet
    # SERVER_IP will be replaced with the IP of the host server


    For ease:

    webdav.servlet.hosts.allowed=127.0.0.1

    After adding the above property, the WebDAV URL will be accessible only to the above mentioned IP address.

Additional Information

did-this-article-resolve-your-issue

legacy-knowledge-base