- Plesk for Linux
When opening website directory listing is shown, despite the fact it is disabled in Domains > example.com > Apache & nginx Settings according to instructions here.
There is an .htaccess file in Domains > example.com > File Manager with directives to enable Directory Listing, for example:
CONFIG_TEXT: Options +FollowSymLinks +Indexes
Directory Listing directive is present in
.htaccess file for the domain, so it overwrites the settings defined in Apache & nginx Settings
Go to Domains > example.com > File Manager.
Remove the Directory Listing directive in
CONFIG_TEXT: Options +FollowSymLinks -Indexes
or, alternatively, just comment the line so that it is ignored:
CONFIG_TEXT: # Options +FollowSymLinks +Indexes
Note: Directory Listing is disabled by default.