Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Feb 03, 2026, 02:03 AM

Title: How to enable/disable directory browsing for a domain in Plesk for Linux
Post by: Suhitha on Feb 03, 2026, 02:03 AM
Applicable to:

Plesk for Linux


Question

How to enable/disable directory browsing for a domain in Plesk for Linux?


Answer

Note: By default, directory listing is disabled for security reasons.

In the example below, directory listing is enabled for the shared directory (example.com/shared/). Change this directory to your own in the configuration below.

1.Log in to Plesk.

2.Go to Domains > example.com > Hosting & DNS > Apache & nginx Settings.

3.Add the following configuration:

<Location /shared/>
Options +Indexes
</Location>

location /shared/ {
autoindex on;
}

4.Apply the changes.

Note: To disable the directory browsing, remove the directives above.