kb: how-to
Plesk for Linux
ABT: Group A
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.
-
Go to Domains > example.com > Apache & nginx Settings.
-
Add the following configuration:
-
to the Additional directives for HTTP and Additional directives for HTTPS fields:
CONFIG_TEXT: <Location /shared/>
Options +Indexes
</Location> -
to the Additional nginx directives field:
CONFIG_TEXT: location /shared/ {
autoindex on;
}
-
-
Apply the changes.
Note: To disable the directory browsing, remove the directives above.
Comments
2 comments
did not work
What is happening?
I remember this article used to work but now it doesn't.
Any bug or failure in the recent updates?
Please sign in to leave a comment.