how to allow Directory Listing

  • Hi Folks,


    I want to allow Directrory Listing only for one dedicatet Directory in a Subdomain, treated by I-MSCP, but I cannot find how to manage that in I-MSCP. If I-MSCP does not offer this option, which way should I prefer, not to run into conflicts with I-MSCP?

  • You could just create a .htaccess file in the folder.


    Code
    1. Options +Indexes
    2. IndexOptions FancyIndexing FoldersFirst
  • You can also add a description for files in your .htaccess file.


    After the IndexOptions add:

    Code
    1. AddDescription "[<span class='description'>This is a file description</span>]" here_is_the_filename.rar



    you can also use * as wildcard

    Code
    1. AddDescription "[<span class='description'>This is an archive</span>]" *.rar


    and files to ignore:

    Code
    1. IndexIgnore *.html .. favicon.ico .htaccess .ftpquota .DS_Store icons *.log