Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.5 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.5 KB

Apache-Directory-Listing

'Apache Directory Listing' is a theme inspired from Apaxy which uses Apache's mod_autoindex module.
Edited by DatDraggy for usage without .htaccess

Usage

  • Download and copy directory-listing to /usr/share/apache2/
  • In /etc/apache2/apache2.conf add following at the bottom:
Alias "/directory-listing" "/usr/share/apache2/directory-listing"
<Directory /usr/share/apache2/directory-listing>
  Options -Indexes
  Order allow,deny
  allow from all
</Directory>
  • This will tell apache that http://your-domain.com/directory-listing is where the browser can find the files to generate the listing and that it's accessible.
  • Take a look at the autoindex.conf file and either edit yours (/etc/apache2/mods-available/autoindex.conf) or replace it with this one.
  • Enable the autoindex module: a2enmod autoindex

Themes

The theme is included with two css files for grid(grid.css) and normal(table.css) for table styled indexing.

Just change the {VIEW} in .htaccess to either grid or table.

You can add your custom code in the header.html and footer.html.

Grid style:

grid

Table style:

table

Credits

Icons referenced from File Types Icons Set.