Apache AutoIndexer with jQuery
- Details
- Published on Sunday, 03 July 2011 16:12
- Written by David L Norris
Apache's mod_autoindex is really rather boring on the surface. However I will show you there is quite a lot you can do with it given a little understanding of how it functions. If you need a file listing this is an excellent means to accomplish that goal. You can wrap the auto-generated output with simple HTML, PHP, Perl or any other file type Apache can process.
In our case, we aren't going to generate anything using PHP or SSI or any other server-side mechanisms. We are going to create a custom header and footer which wraps the basic unordered list output format with CSS and jQuery calls. We will create the .htaccess file and other supporting files at the root of a /images folder on our server; in my case this is a Joomla installation's uploaded images folder. I just want a quick and dirty means for authors to browse images uploaded into certain folders of this system.