1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How do I can display the directory's file list ?

Discussion in 'Plesk for Linux - 8.x and Older' started by Neantis, Dec 30, 2007.

  1. Neantis

    Neantis Guest

    0
     
    Hi,

    How do I can configure apache for one of my customer to display the file list of a directory ?
    I know i can add some configuration in vhost.conf but i don't know what i need to add.

    Does anyone can help me ?

    Thanks in advance for your help ;)

    PS: Sorry for my english, i'm not a native english speaker.
     
  2. lvalics

    lvalics Silver Pleskian Plesk Guru

    36
    43%
    Joined:
    Jun 20, 2003
    Messages:
    965
    Likes Received:
    32
    Location:
    Romania
  3. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    Add this into a vhost.conf file for your domain

    Code:
    <Directory "/var/www/vhosts/domain/httpdocs/sub-folder-if-any">
    Options Indexes
    </Directory>
    

    Then run
    Code:
    /usr/local/psa/admin/bin/websrvmng -v -a
    service httpd restart
    
    That will do it.
     
  4. lvalics

    lvalics Silver Pleskian Plesk Guru

    36
    43%
    Joined:
    Jun 20, 2003
    Messages:
    965
    Likes Received:
    32
    Location:
    Romania
    I feel the .htaccess solution is much more easier to do for any user.
    It is a simple file with a single line.

    Options +Indexes
     
  5. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    Either way, they do the same thing.
     
Loading...