Note that there are some explanatory texts on larger screens.

plurals
  1. POSimple script to replace Apache's mod_autoindex with a user-friendly directory listing
    primarykey
    data
    text
    <p>The Apache module <a href="http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html" rel="nofollow noreferrer">mod_autoindex</a> generates "directory indexes" that show users a crude hyperlinked list of the files and directories inside a directory (when there is no index.html or other <a href="http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex" rel="nofollow noreferrer">DirectoryIndex</a> file).</p> <p>I have a directory on an Apache webserver where I want to provide an automatic directory listing, including the full filenames, sorted most-recently-modified-first, with file sizes displayed, using simple and attractive presentation. I cannot use mod_autoindex or other Apache features.</p> <p>I am therefore looking for a simple script that does much the same thing as mod_autoindex. In other words I want a script I can put in a directory that outputs an HTML document to STDOUT that contains a hyperlinked list of the files in the directory.</p> <p>The script should present its output in a simple &amp; attractive way (non-technical people will be using it), consist of one file that I can edit if required, and preferably be OS-independent (so I can use it again later). Extra features would be great, but ease of install is all-important (though I am happy to tweak the code if I have to).</p> <p>My preference is for a perl script (i.e. an index.pl file), but PHP would be acceptable (index.php). Those are the only DirectoryIndex options on the server. </p> <p><strong>Update</strong></p> <p>I have decided to use <a href="http://www.bitfolge.de/snif-en.html" rel="nofollow noreferrer">snif</a> in preference to <a href="http://autoindex.sourceforge.net/" rel="nofollow noreferrer">AutoIndex</a> to solve the current problem, but I am still interested in finding a perl implementation, so if you know of one please post it. Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload