• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Listing files in a particular web directory...

beansbaxter

Senior member
How do you make a website folder, when displayed in any browser, just list all the files in that folder (directory)?

As an example, here is a web link:

http://ccc.ru/web/moto/

When you goto that web link, it just lists an index of all the files in that particular directory. How do I accomplish this??

I'm sure this is something easy, just never knew how to do it.
 
I think this is a feature of webserver, in the case of http://ccc.ru/web/moto/ this is Apache which can be configured to do this when directory URL is requested and there is not the default document present in it (usually index.html or default.html). I don't know if this configuration is possible for all webservers, but surely you can create CGI skript to do this (or some kind of PHP, ASP, JSP or any .SP ...)

D.
 
Edit the httpd.conf file. Look for the virtual host of the correlating site, and enter:

[Directory /path/to/wherever]
Options -Indexes
[/Directory]

Make sure "/path/to/wherever" is the actual directory.

Replace brackets with less than and greater than. This board wouldnt let me post them.

Then restart apache.
 
Back
Top