Responsive CSS with dark mode support for Apache's mod_autoindex listings
Find a file
2023-07-29 13:09:21 -05:00
angular angular: Remove unused deps 2023-02-09 12:39:03 -06:00
bin Add AUTHORS, release checklist 2023-07-29 13:09:21 -05:00
src Add attribution tag at the top of the compiled CSS 2023-02-13 11:12:22 -06:00
.editorconfig Replace vim modelines with editorconfig 2023-07-29 12:04:32 -05:00
.gitattributes Treat the Node lockfiles as binary 2023-01-27 12:45:00 -06:00
.gitignore Don't use a VERSION file 2023-07-29 12:25:03 -05:00
.htaccess Deny from all in angular harness 2021-12-01 11:51:12 -06:00
.mailmap Add mailmap for git 2023-07-29 13:03:25 -05:00
AUTHORS Add AUTHORS, release checklist 2023-07-29 13:09:21 -05:00
CHANGELOG.md Add AUTHORS, release checklist 2023-07-29 13:09:21 -05:00
FOOTER.html Rename project to apache-modern-autoindex 2023-01-18 10:17:52 -06:00
LICENSE Add LICENSE 2021-12-01 11:51:13 -06:00
LICENSE-bootstrap Separate Angular harness from main project 2023-01-27 12:45:00 -06:00
Makefile Don't use a VERSION file 2023-07-29 12:25:03 -05:00
package.json pnpm: Bump bootstrap to 5.2.3, sass to 1.58.3 2023-07-29 12:07:12 -05:00
pnpm-lock.yaml pnpm: Bump bootstrap to 5.2.3, sass to 1.58.3 2023-07-29 12:07:12 -05:00
README.md Compile stylesheet using Node sass implementation 2023-01-27 12:45:00 -06:00
RELEASE_CHECKLIST.md Add AUTHORS, release checklist 2023-07-29 13:09:21 -05:00

Apache Modern Autoindex

This project is a modern restyling of the default file listing tables provided by Apache's mod_autoindex module that ships with all major distributions of Apache.

A modern autoindex if you will. ;-)

Features

  • Automatic dark mode support
  • Mobile/tablet/small screen support using responsive design breakpoints; hides a column on small screens
  • User interface improvements:
    • Clicking anywhere in the table cell activates links
Light Mode Dark Mode
Light mode screenshot Dark mode screenshot

Building

Run make to generate autoindex.css.

Build requirements:

  • nodejs
  • pnpm

Installation

Compile the css and then install it as /var/www/apache-css/autoindex.css.

Then, update your Apache configuration:

IndexOptions \
    Charset=UTF-8 \
    DescriptionWidth=* \
    FancyIndexing \
    FoldersFirst \
    HTMLTable \
    IconsAreLinks \
    NameWidth=* \
    VersionSort \
    XHTML \

# Optional: Include footer
ReadmeName /apache-css/FOOTER.html

# Re-route incoming requests to this folder
Alias /apache-css "/var/www/apache-css"

<Directory "/var/www/apache-css">
    # Required - allow requests
    Require all granted
    # Optional - allow indexing the folder
    Options Indexes
    # Optional - only if you're keeping a git clone in the folder
    AllowOverride all
</Directory>

# Make the responsive design aspects of the stylesheet work on mobile devices
IndexHeadInsert '\
    <meta name="viewport" content="width=device-width, initial-scale=1"/>\
'
IndexStyleSheet "/apache-css/autoindex.css"