Wares >SWISH ] [ Simple Search ] [ Trunk Calc ]

Directory Indexing Toys

Edited on January 1st, 1970, 00:00 UT.

Apache index module replacement

This is an autoindex module alternative. You know, the thing that gives you directory listings. I don't particularly like the one included with Apache, so I rewrote it a little.

This modified module outputs the directory to a proper HTML table. The original module outputs to table-like preformatted text. With my module, the appearance of columns and rows may be modified using CSS. Examine the HTML output from this module for further explanation.

My modifications consist of rewriting the HTML within the printf() statements to comply with the HTML 4.0 standard. And, dumping out field limiting code. The old indexer limited field text, so each line would fit on an 80 column text display. This is pretty, but, not very functional. Even on text terminals. This, in effect, obscures the filenames and descriptions to the user. "test12345.html" appears as "test1234..." using the Apache supplied indexing module.

This module has been tested with Apache 1.3.0 beta through 1.3.3 on Windows 9x and NT. I have tested it on Apache/1.3.3 on Linux. I see no reason why it wouldn't work on other versions and systems, also. The indexing module hasn't changed much over time, and, is likely to remain the same for quite some time. So, this alternate should drop right into most versions of Apache, future, current, and past. Also, you might need to fix the line feeds for your system to compile it correctly. On Unix® systems, just strip out the carriage returns. "\r" in most RegEx libraries.

If you find any errors or have suggestions then please email me. Do not send any bug reports regarding this module to the Apache Group. They wont fix it. They have their own indexing module to worry about.

Recursive Directory Indexer script