Legacy Knowledge Base
Published Jul. 2, 2025

Enabling Directory Indexing

Written By

Laura Li

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.

Description

If directory indexing is enabled, document libraries are browsable through the URL not only for site admins but for anyone according to the default Document Library permissions.

This could result in permission / security issues with documents being viewable by incorrect parties.

This article describes how to manage directory indexing in a way that gives you more control across sites.

Resolution

Directory indexing is disabled in DXP by default because of security reasons as per OWASP, however, enabling it might be needed in certain cases and Liferay offers two ways to do this.

1. The global behavior can be changed with a property which is set to false by default:
web.server.servlet.directory.indexing.enabled=false

We do not recommend to enable this property in most cases because it will be effective for all sites within the portal.

2. "Enable Directory Indexing" toggle for individual site via Site Settings.

Did this article resolve your issue ?

Legacy Knowledge Base