Skip to content
No description, website, or topics provided.
CSS HTML
Branch: master
Clone or download

Latest commit

nervo Subdirectory example in readme
See #1

And thanks to @likeit92 :)
Latest commit 5314a6c May 17, 2016

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
images/icons
js
README.md
footer.html
header.html

README.md

Manala Nginx Autoindex Theme

Integration

Clone the repository into a root hidden .theme folder

git clone https://github.com/manala/nginx-autoindex-theme.git .theme

Add the following parameters to your nginx configuration

...
add_before_body /.theme/header.html;
add_after_body /.theme/footer.html;

autoindex_exact_size off;
autoindex on;
...

You can also handle subdirectoris this way

location /foobar {
    alias /usr/share/nginx/html/foobar/;

    sub_filter_once off;
    sub_filter '/.theme' '/foobar/.theme';

    add_before_body /foobar/.theme/header.html;
    add_after_body /foobar/.theme/footer.html;

    autoindex_exact_size off;
    autoindex on;
}

Inspiration

https://github.com/tuxy/nginx-indexer

You can’t perform that action at this time.