Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on Apache List in the VPS & Dedicated forum
Hi, i was wondering if one of you guys could help me. I want to enable to let visitors to a certain folder on my ...

  1. #1
    JPC Member
    Join Date
    Jun 2006
    Posts
    43

    Apache List

    Hi, i was wondering if one of you guys could help me.

    I want to enable to let visitors to a certain folder on my website see a list of everything in the folder....

    I don't want to enable it domain wide, just limit it to a specific folder...

    For example, i've set up a subdomain which is files.mydomain.com

    How would i enable list for files.mydomain.com but not on everything else in that domain??

    Does this make sense?

    Thanks

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    In the .htaccess file in the directory where you want to allow the file list add the following:

    Code:
    Options +Indexes
    That will allow the file list on that directory and anything below it. To disable the listing on lower level directories you'll need add

    Code:
    Optins -Indexes
    to each directory within the one you are allowing the list. You'll also want to add "Options -Indexes" to your root (public_html) .htaccess file to disable the listing globally if you haven't already done so.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    JPC Member
    Join Date
    Jun 2006
    Posts
    43
    Thanks, that worked a treat.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •