Apache's mod_autoindex feature is very useful when you want to set up a simple file sharing server, but its design is trapped in 1997. By default it serves HTML 3.2.
So, I decided to give it an overdue makeover by taking advantage of modern components like Bootstrap, jQuery, Google Fonts, and Font Awesome!
-
These Apache modules enabled:
- mod_dir
- mod_mime
- mod_deflate
- mod_filter
- mod_autoindex
- mod_include
-
Set
AllowOverride All
for your virtual host's document root. For example, here's an except from an example virtual host configuration:
DocumentRoot /home/iglvzx/www <Directory /home/iglvzx/www> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>