Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Jan
    Jan is offline
    Regular Coder
    Join Date
    Jul 2002
    Location
    Finland
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts

    List files in Apache folder

    Hi!

    How can I get the files listed that are on my Apache server? I'm running a localhost, and the directory listing won't show. What should I do?


    ~Jan

  • #2
    Regular Coder
    Join Date
    Jan 2003
    Posts
    867
    Thanks
    4
    Thanked 8 Times in 8 Posts
    In your httpd.conf file you should have a Directory block for your root web directory. Mine looks like this after I removed a lot of comments (your's might be slightly different):

    <Directory "C:/Program Files/Apache Group/Apache2/htdocs">
    Options Indexes Includes
    Order allow,deny
    Allow from all
    </Directory>

    You want to delete "Indexes" from the first line within the block so you now have:

    <Directory "C:/Program Files/Apache Group/Apache2/htdocs">
    Options Includes
    Order allow,deny
    Allow from all
    </Directory>

    Then I think you have to restart apache.

    If there are other directories that you want to browse such as the /icons then do the same for those blocks.

  • #3
    Jan
    Jan is offline
    Regular Coder
    Join Date
    Jul 2002
    Location
    Finland
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts
    arnyinc: Thanks for your reply. Unfortunately, it didn't work Should I post the httpd.conf file for you to take a look at, or isn't that a good idea?


    ~Jan

  • #4
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    Doesn't the "Indexes" option allow for indexing? Not dis-allow?


  •  

    Posting Permissions

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