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.

don't want to show folder content

Discussion in 'General Discussion' started by cosmin, Sep 3, 2002.

  1. cosmin

    cosmin Well-Known Member

    Joined:
    Feb 6, 2002
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucuresti
    Hi!

    How can I modify httpd.conf (???) for this problem:

    Who access www.name.com/images/ (for example) can see the folder content, but I don't want this... and I don't want to put in every folder an index.html

    Any sollutions?

    Thanks!
     
  2. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    Put a .htaccess file in the public_html directory with this as its sole contents:

    Options -Indexes

    If you want to disable it server wide, you can put that .htaccess file in the /home directory.
     
  3. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    .... or you can put the Options -Indexes line in your httpd.conf.
     
  4. cosmin

    cosmin Well-Known Member

    Joined:
    Feb 6, 2002
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucuresti
    Work

    Work with .htaccess.

    Thank you very much!
     
Loading...

Share This Page