Plesk for Linux
kb: how-to
ABT: Group A
Applicable to:
- Plesk for Linux
Question
How to enable directory traversing for Apache/Nginx in Plesk?
Answer
For Apache
- Enable it for all directories:
- Log into Plesk;
- Go to Subscriptions > example.com > Apache & nginx Settings > Additional directives for HTTP (or HTTPS) specify the following:
CONFIG_TEXT: <LocationMatch "^/.*$">
Options Indexes
</LocationMatch>
- Enable it for single directory:
- Log into Plesk;
- Go to Subscriptions > example.com > Apache & nginx Settings > Additional directives for HTTP (or HTTPS) specify the following:
CONFIG_TEXT: <LocationMatch "^/DIR_NAME.*$">
Options Indexes
</LocationMatch>
For Nginx
- Enable it for all directories
- Log into Plesk;
- Go to Subscriptions > example.com > Apache & nginx Settings > Additional directives for Nginx specify the following:
CONFIG_TEXT: autoindex on;
- Enable it for single directory:
- Log into Plesk;
- Go to Subscriptions > example.com > Apache & nginx Settings > Additional directives for Nginx specify the following:
CONFIG_TEXT: location ^~ /DIR_NAME/ {
autoindex on;
}
Comments
0 comments
Please sign in to leave a comment.