Results 1 to 3 of 3

Thread: Able to see files and folders of website

  1. #1
    Join Date
    Sep 2006
    Beans
    118

    Able to see files and folders of website

    Have a question that seems I could have easily found the answer to by searching the 'net, but maybe I'm just not using the right search terms.

    I'm playing around with Ubuntu Server 10.04.1 and wanted to experiment with setting up a website.

    I have a dummy site running and noticed that by pointing my browser to the root of the site I was able to see the file and folder structure.

    I'd like it to not do that and wanted to know the best way to disable it.

    I don't have an index.html page in it (experimenting with PHP stuff right now). Is it best to just put in an index.html page or is it better to use some type of Apache directive or filesystem level permission setting?

    Thanks.
    __________________

  2. #2
    Join Date
    Nov 2010
    Beans
    8
    Distro
    Ubuntu

    Re: Able to see files and folders of website

    You should remove the Indexes directive from your Apache configuration. That's typically /etc/apache2/httpd.conf:
    Change
    Code:
      Options All Indexes FollowSymLinks MultiViews
    to
    Code:
      Options All FollowSymLinks MultiViews

  3. #3
    Join Date
    Sep 2006
    Beans
    118

    Re: Able to see files and folders of website

    Thanks, mike.doherty.
    __________________

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •