oo

Securing Site Documents Content

By default, your Site’s Documents and Media files and folders are not visible in the web server directory index, so you can’t view them through the browser. To enable browsing a Site’s documents through the web server directory index, you can enable this setting for your Site.

Once enabled, your can browse your Site’s Documents and Media files at http://localhost:8080/documents/site-name (e.g. http://localhost:8080/documents/marketing for a Site called Marketing).

Configuring Document Visibility in the Web Server Directory Index

  1. Access the Enable Directory Indexing option:

    • In Liferay DXP 7.4+

      1. From the Site Menu, go to ConfigurationSite Settings.
      2. In the Content and Data section, click Documents and Media.

      In Liferay DXP 7.4+, change the Enable Directory Indexing option from the Site Settings section.

    • In previous Liferay DXP versions

      1. From the Site Menu, go to ConfigurationSettings.
      2. Under the General area, expand the Documents and Media section.

      In previous Liferay DXP versions, change the Enable Directory Indexing option from the Settings section.

  2. Toggle the Enable Directory Indexing setting to enable or disable this setting.

    important

    Once enabled, only Administrators and Users with view permission can browse your Site’s Documents and Media files in the web server directory index.

  3. Click Save.