Viewing files in folders

Discussion in 'Apache' started by dcole07, May 14, 2006.

  1. #1
    I just switched to a Fedora Core 5 Server with Apache (httpd) and I can't view files out site the base directory (EX: www.example.com/blah/index.php but I can view www.example.com/index.php)

    How do I change settings so I can view files deeper into the base dir.??

    Also, this is my own server... I am root, The server is in my house..
     
    dcole07, May 14, 2006 IP
  2. stdio

    stdio Peon

    Messages:
    467
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can do this in two ways. by adding this line to .htaccess or by editing httpd.conf.

    Add this line to .htaccess: Options +Indexes

    Or add this line to your httpd.conf:

    <Directory /var/www>
    Options +Indexes
    </Directory>

    Of course you need to edit the path.

    Hope this helps.
     
    stdio, May 15, 2006 IP