Forum Moderators: phranque

Message Too Old, No Replies

Need help to display folder contents with Apache

I know this used to be possible, out of the game for too long.

         

CoolHand

8:39 pm on Jun 12, 2006 (gmt 0)

10+ Year Member



Ok guys, when I was in middle and high school I remember being able to link directly to a directory on a webserver and have the contents displayed as a plain text list of links.

However, now that I try to do this again, I am having difficulties.

What has changed in the intervening twelve or fifteen years?

Now, I realize this may be a really stupid question, but I have spent the better part of today searching this forum and I've got nothing to show for it.

Any help would be greatly appreciated.

Ryan

piatkow

11:14 pm on Jun 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



IIRC the ability to display the folder content must be explicitly enabled on the server. Once upon a time this seemed to be standard but not these days.

I am afraid that I have totally forgotten the technicalities.

LifeinAsia

11:16 pm on Jun 12, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



It depends on your server- IIS, Apache, etc. have different ways of setting it up. I can tell you for IIS- no clue for Apache.

CoolHand

11:26 pm on Jun 12, 2006 (gmt 0)

10+ Year Member



Bummer. I'm on an Apache server.

Thanks for the help so far guys.

So, I guess the question now becomes, "Does anyone know how to enable this function on an Apache server?"

Thanks again for your time guys.

Ryan

encyclo

9:59 am on Jun 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In most cases with Apache, directory indexing is avalable if there is no recognized index file in the directory or if auto-indexing has not been disabled by the server administrator.

If auto-indexing is not working, you can try adding the following to a .htaccess below the directory you want auto-indexed:

Options +Indexes

This should enable auto-index.

CoolHand

5:32 pm on Jun 13, 2006 (gmt 0)

10+ Year Member



That did it.

Thanks much man, I appreciate it.

If you ever need anything related to Mining or Machine Tools, you let me know. lol

Thanks again.

Ryan