Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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:
    166
    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:
    156
    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:
    4
    Trophy Points:
    343
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. xperience2

    xperience2 Active Member

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

    Simon
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    No problem. I got it from another message board a while ago. ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice