Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 549 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 549 Bytes

Nginx Index Template

Bootstrap version of : dirlist.xslt with breadcrumb

To use it :

server {
  server_name   foo.bar.baz;
  listen        80;
  root          /home/aptly/endpoints;

  autoindex     on;
  autoindex_format xml;

  access_log    /var/log/nginx/aptly.access.log;
  error_log     /var/log/nginx/aptly.error.log;


  location / {
    try_files $uri @autoindex;
  }

  location @autoindex {
    xslt_stylesheet /home/aptly/nginx_template.xslt path='$uri';
  }
}