html directory listing formatting

13,897

This is what you're looking for: http://perishablepress.com/better-default-directory-views-with-htaccess/

This tutorial details how directory listing by Apache can be modified to suit your taste using HTAccess file.

Using Apache HeaderName and ReadmeName directives and the module "mod_autoindex.c" you can add custom markup to your directory listing pages.

Share:
13,897
Drake
Author by

Drake

meh

Updated on August 15, 2022

Comments

  • Drake
    Drake over 1 year

    So, I've been trying to get a web page to display links to videos (over a symbolic link) dynamically (i.e., without hardcoding an <a></a> tag for each one) I have, and I think I may have found a solution, albeit a hacky one:

    <a href="./Video/">Video</a>
    

    Ignoring that this is a horrible way to do this, does anyone know how to format the following?:

    enter image description here

    I'm guessing there is an apache config file somewhere, but it is extremely hard to search for it as I do not know what it is called when files are just listed in this manner.

    i'm basically looking to resize the widths of columns, and maybe even do some pretty-fication.

    this is all running on my web/file server and is being accessed form my local machine.