From f4e527aac36ba77932b2ab1c8f556ab410fd8349 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 4 Feb 2017 19:07:31 +0100 Subject: Initial commit. --- conf-available/autoindex.conf | 14 ++++++++++++ customization/autoindex/footer.shtml | 3 +++ customization/autoindex/header.shtml | 42 ++++++++++++++++++++++++++++++++++++ readme.md | 12 +++++++++++ 4 files changed, 71 insertions(+) create mode 100644 conf-available/autoindex.conf create mode 100644 customization/autoindex/footer.shtml create mode 100644 customization/autoindex/header.shtml create mode 100644 readme.md diff --git a/conf-available/autoindex.conf b/conf-available/autoindex.conf new file mode 100644 index 0000000..a7b9669 --- /dev/null +++ b/conf-available/autoindex.conf @@ -0,0 +1,14 @@ + + Alias /autoindex/header.shtml /etc/apache2/customization/autoindex/header.shtml + Alias /autoindex/footer.shtml /etc/apache2/customization/autoindex/footer.shtml + + + Options +Includes + Require all granted + + + IndexOptions FancyIndexing FoldersFirst SuppressHTMLPreamble + + HeaderName /autoindex/header.shtml + ReadmeName /autoindex/footer.shtml + diff --git a/customization/autoindex/footer.shtml b/customization/autoindex/footer.shtml new file mode 100644 index 0000000..a78654e --- /dev/null +++ b/customization/autoindex/footer.shtml @@ -0,0 +1,3 @@ + + + diff --git a/customization/autoindex/header.shtml b/customization/autoindex/header.shtml new file mode 100644 index 0000000..7438478 --- /dev/null +++ b/customization/autoindex/header.shtml @@ -0,0 +1,42 @@ + + + + + + + [<!--#echo var="SERVER_NAME" -->] <!--#echo var="REQUEST_URI" --> + + +
+

diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..80e7edd --- /dev/null +++ b/readme.md @@ -0,0 +1,12 @@ +# Autoindex customization for Apache HTTP server +This package configures your Apache HTTP server to use custom directory index pages instead of the default ones. + +## Dependencies +This customization requires that your Apache HTTP server is equal to or greater than **2.4** in the version. In addition, the following modules needs to be enabled: + +* `mod_alias`: +* `mod_include`: +* `mod_authz_core`: + +## Installation +All files and directories provided in this package are relative to the `/etc/apache2/` (depends on the system you use) directory. To activate the configuration, just execute `a2enconf autoindex` and reload the configuration with `systemctl reload apache2`. \ No newline at end of file -- cgit v1.2.3