Friday 2nd July 2004

Noooooo!

Gary can’t find his way around the Apache docs, so he’s come up with a little php script to print out a directory listing. A simple “Options +Indexes” in an .htaccess file would suffice – FancyIndexing makes it even nicer. And Apache inheritantly knows not to print out .htaccess or .htpasswd files as well. If you’re having trouble with getting Apache to listen to your .htaccess files, have a look at the AllowOverride directive.

But there’s no need to reinvent the wheel.

Incidently, automatic index generation is turned off by default (leaving you with getting a “403 Forbidden” for trying to look at a directory) for security reasons – I once emailed a DOC student about the fact that I knew their database password due to a badly designed website combined with automatic index listings.

2 Comments »

  1. Well I had two web server admins trying to help sort the problem out last time, and we couldn’t work out how to do it. Therefore it wasn’t just me being unable to read – there were two other people as well ;-)

    Comment by Gary — 2/7/2004 @ 11:28 am

  2. What exactly was the problem? The indexing?

    And which web server admins was this? I deny all knowledge of everything. I could turn on indexing in a heartbeat, I’ve done it here, so i don’t see why i couldn’t do it selectively on dramsoc.org

    Comment by Sam — 6/7/2004 @ 4:23 pm

Leave a comment