How do I make Apache use my script for listing files? I want to have it
generate good clean HTML, and the Apache builtin doesn't do that.
You can customize that i think a better way than the following, but i've
forgotten how. You might want to Google 'apache index custom'.
As for what you were thinking of doing, just put a DirectoryIndex
directive in a .htaccess in the dir you want to have custom listing. Or if
it's for all dirs, just put it in a container like
<Directory /whatever>
DirectotyIndex yourcustomscript.php
</Directory>
I think that's right. You could and should just edit the httpd.conf if you
have access to it, save using .htaccess as it takes more resources.