The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Directory Listings for www folder

Discussion in 'General Discussion' started by xperience2, Dec 5, 2003.

  1. xperience2

    xperience2 Active Member

    Joined:
    Nov 24, 2003
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Hello!

    I've used the control panel Index manager for a domain to turn off directory listings for all subfolders but there's no way to do it for the www folder itself. If you click on current folder it just reloads the page. please tell me if i'm missing something obvious (probably)

    Simon
     
  2. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    The www is just a symbolic link.

    Brenden
     
  3. xperience2

    xperience2 Active Member

    Joined:
    Nov 24, 2003
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    so can you not turn off directory indexing on the public_html folder?

    Simon
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Just put this line

    Options -Indexes

    in your .htaccess file in the public_html directory. If you don't have a .htaccess file, just create one.
     
  5. xperience2

    xperience2 Active Member

    Joined:
    Nov 24, 2003
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Thanks squirrel!

    Simon
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    No problem. I got it from another message board a while ago. ;)
     
Loading...

Share This Page