Product:
Search Type:

How can I enable directory indexing for domains?

Article ID: 437 
Last Review: Jul,10 2008
APPLIES TO:
  • Plesk for Linux/Unix

RESOLUTION

If you would like to enable directory indexing for all domains append the following block of text to the end of the httpd.conf file:

<LocationMatch "^/.*$">
Options +Indexes
</LocationMatch>

If you would like to enable it per domain you should add these directives into needed files (for HTTP, HTTPS and subdomains accordingly):

HTTPD_VHOSTS_D/domain.tld/conf/vhost.conf
HTTPD_VHOSTS_D/domain.tld/conf/vhost_ssl.conf
HTTPD_VHOSTS_D/domain.tld/subdomain/conf/vhost.conf

Once the changes have been made, please, run the utility below for the changes to take effect and restart Apache service.
PRODUCT_ROOT_D/admin/sbin/websrvmng -v -a


If you would like to enable directory indexing for some directory, for example HTTPD_VHOSTS_D/domain.tld/httpdocs/DIR_NAME you should add the following lines into appropriate vhost.conf:

<LocationMatch "^/DIR_NAME.*$">
Options +Indexes +SymLinksIfOwnerMatch
</LocationMatch>

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields