fancyindex_footer
The `fancyindex_footer` directive sets a custom footer for directory listings generated by the NGINX Fancy Index module.
Description
The fancyindex_footer directive in the NGINX Fancy Index module allows users to specify a custom footer that appears at the bottom of directory listings. This directive is particularly useful for personalizing the output of directory indices, as it enables the addition of relevant information or links that may be helpful to users navigating the site. Users can set a local file path containing the footer HTML, or leave it blank to use the default footer provided by the module.
When specified, the footer is included in the HTML file that is generated when a directory's content is listed, thus allowing for greater customization compared to the stock NGINX autoindex module. The footer content is static and cannot be dynamically generated using a subrequest, consistent with the module's design to ensure better performance and simplicity. The behavior of this directive is controlled by its parameters: it accepts either one or two arguments, with the first being the local path to the footer file, and the optional second parameter allowing for alternate configurations or styles to be applied.
Config Example
location /files {
fancyindex on;
fancyindex_footer /path/to/footer.html;
}The specified footer file must exist and be accessible by the NGINX process. Ensure correct file permissions are set.
If not specified, the default footer will be used; leaving it completely empty is also a valid option.