Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uzinfocom-org/autoindex

πŸ•ΈοΈ | Custom autoindex directory listing for nginx [maintainer=@yetimdasturchi]
https://github.com/uzinfocom-org/autoindex

autoindex nginx nginx-template

Last synced: about 10 hours ago
JSON representation

πŸ•ΈοΈ | Custom autoindex directory listing for nginx [maintainer=@yetimdasturchi]

Awesome Lists containing this project

README

        

# oss-autoindex
πŸ•ΈοΈ | Custom autoindex directory listing for nginx

Copy .html folder to the folder you want to index and add the location.config file to nginx server.

Sample server:

```
server{
listen 80;

root /media/files;

server_name _;

location / {
try_files $uri $uri/ =404;
add_before_body /.html/top.html;
add_after_body /.html/bot.html;
autoindex on;
autoindex_localtime on;
autoindex_exact_size on;
sub_filter '' '';
sub_filter 'Index of $uri' '';
sub_filter '' '';
sub_filter '' '';
sub_filter '' '';
sub_filter_once on;
}
}
```