Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    37

    Default Directory Listings for www folder

    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. #2
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default Re: Directory Listings for www folder

    Originally posted by xperience2
    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
    The www is just a symbolic link.

    Brenden

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    37

    Default

    so can you not turn off directory indexing on the public_html folder?

    Simon

  4. #4
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  5. #5
    Member
    Join Date
    Nov 2003
    Posts
    37

    Default

    Thanks squirrel!

    Simon

  6. #6
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    No problem. I got it from another message board a while ago.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. sync folder from 1 web directory folder and network vpn
    By khambalya in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-29-2007, 05:08 AM
  2. www folder
    By sabaa in forum New User Questions
    Replies: 5
    Last Post: 08-02-2006, 11:45 PM
  3. FTP help no directory listings
    By pshepperd in forum Data Protection
    Replies: 5
    Last Post: 02-16-2005, 05:24 AM
  4. Switching apache directory listings off
    By flashhosts in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-18-2002, 05:52 AM
  5. www folder
    By Luftwaffe in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-22-2002, 02:57 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube