Index list of Site files when site url is requested

Discussion in 'Tips/Tricks/Mods' started by clpetroff, Oct 8, 2007.

  1. clpetroff

    clpetroff New Member

    How can a *site/user's* web directory be set up so when their url is access ed the list of the files/folders are displayed instead of a home or index.htm file?

    Thanks
     
  2. Tenzer

    Tenzer New Member

  3. clpetroff

    clpetroff New Member

    Gave it a try

    .htaccess is what I had before we installed ISP Config and upgraded to Since then, .htaccess, with Options +Indexes as file contents, in a web dir causes:
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    IndexOrderDefault Ascending Name gives:
    You don't have permission to access / on this server.
    when no index.html present.

    I am assuming .htaccess is to be in the web dir with the files to be displayed; and there is no ISP Config changes that need to be made.

    Ieem to be missing something.
    thanks.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You must not put
    Code:
    Options +Indexes
    in your .htaccess file. Use something like
    Code:
    <Directory /path/to/directory>
      Options +Indexes
    </Directory>
    in the Apache Directives field in ISPConfig instead.
     
  5. clpetroff

    clpetroff New Member

    code in Apache Directives

    Thanks for the info.

    I did remove the .htaccess file
    and in ISPconfig, in the isp site Apache Directives did put

    <Directory /var/www/web25/web>
    Options +Indexes
    </Directory>

    and tried

    <Directory /var/www/web25/web>
    IndexOrderDefault Ascending Name
    </Directory>

    both brought the index.html page, and when index.html was removed brought up the error: You don't have permission to access / on this server.

    thanks
    chris
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Can you post the vhost configuration of web25?
    Are there any errors in Apache's error log?
     

Share This Page