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 Index

Discussion in 'General Discussion' started by bsamson, Nov 18, 2004.

  1. bsamson

    bsamson Active Member

    Joined:
    Sep 18, 2004
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Good morning. I am fairly new to linux & cpanel. I would like to find out if there is a way to turn directory indexes to off, server wide? I know you can do it via control panel by selecting each directory. However, I would like it to be OFF by default.

    Any help would be very much appreciated!

    Best Regards,
    Brian S
     
  2. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    534
    Likes Received:
    0
    Trophy Points:
    16
    Sure. Check out the Apache docs, and then look in your httpd.conf - which you will have to edit using the command line, connecting with SSH.
     
  3. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    This will work was:

    To turn off directory indexing:

    SSH to the server

    cd /home

    pico .htaccess

    Options -Indexes

    ctrl-o

    ctrl-x
     
Loading...

Share This Page