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.

Switching apache directory listings off

Discussion in 'EasyApache' started by flashhosts, Oct 18, 2002.

  1. flashhosts

    flashhosts Active Member

    Joined:
    Sep 1, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Anyone shed some light on this? preferably through ssh.....


    Thanks
     
  2. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [quote:bbc173e7f5][i:bbc173e7f5]Originally posted by flashhosts[/i:bbc173e7f5]

    Anyone shed some light on this? preferably through ssh.....


    Thanks[/quote:bbc173e7f5]
    I think you don't like to disable directory listing (browsing) for the entire server,
    Any user can enable and disable directory browsing (listing) by uploading an .htaccess file to that directory, which contains this:

    [quote:bbc173e7f5][i:bbc173e7f5].htaccess[/i:bbc173e7f5]

    Options -indexes
    [/quote:bbc173e7f5]

    i.e if you make an .htaccess file in images directory then no one can list (browse) it via browser but all images are accessible by using their URLs like this:
    http://domain.com/images/sample.jpg
     
  3. flashhosts

    flashhosts Active Member

    Joined:
    Sep 1, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    itf, I begining to like you :p everytime I have a question you are one of the first to respond and most times your answer works first time (the only other time was the email problem which you where right when I upgraded it worked) I got the directory listings working thanks to you..


    Robert
     
Loading...

Share This Page