...

View Full Version : List files in Apache folder



Jan
06-15-2004, 02:34 PM
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

arnyinc
06-17-2004, 09:29 PM
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.

Jan
06-18-2004, 11:07 AM
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

bcarl314
06-18-2004, 03:19 PM
Doesn't the "Indexes" option allow for indexing? Not dis-allow?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum