├── t ├── case-sensitivity │ ├── Bob │ └── alice ├── show_dotfiles │ └── .okay ├── child-directory │ └── empty-file.txt ├── has-index │ └── index.html ├── 01-smoke-hasindex.test ├── has-index.test ├── bug78-case-sensitive.test ├── bug78-case-insensitive.test ├── 03-exact_size_off.test ├── bug107-filesystem-root-404.test ├── 12-local-footer-nested.test ├── 02-smoke-indexisfancy.test ├── 08-local-footer.test ├── 09-local-header.test ├── 07-show_dotfiles.test ├── bug61-empty-file-segfault.test ├── nginx.conf ├── 00-build-artifacts.test ├── bug95-square-brackets.test ├── 06-hide_parent.test ├── 04-hasindex-html.test ├── build-and-run ├── 10-local-headerfooter.test ├── bug157-saturday-in-long-weekdays.test ├── 05-sort-by-size.test ├── 11-local-footer-nested.test ├── 07-directory-first.test ├── run ├── preamble └── get-pup ├── .gitattributes ├── config ├── template.awk ├── LICENSE ├── HACKING.md ├── .github └── workflows │ └── ci.yml ├── template.html ├── template.h ├── CHANGELOG.md ├── README.rst └── ngx_http_fancyindex_module.c /t/case-sensitivity/Bob: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /t/show_dotfiles/.okay: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /t/case-sensitivity/alice: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /t/child-directory/empty-file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | /.gitignore export-ignore 2 | /.travis.yml export-ignore 3 | /make-dist export-ignore 4 | t/* text eol=lf 5 | -------------------------------------------------------------------------------- /t/has-index/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |index.html.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/t/01-smoke-hasindex.test:
--------------------------------------------------------------------------------
1 | #! /bin/bash
2 | cat <<---
3 | This test fetches the root directory served by Nginx, which has no index file,
4 | and checks that the output contains something that resembles a directory index.
5 | --
6 | nginx_start
7 | grep 'Index of' <( fetch )
8 |
--------------------------------------------------------------------------------
/t/has-index.test:
--------------------------------------------------------------------------------
1 | #! /bin/bash
2 | cat <<---
3 | This test ensures that the "index.html" is returned instead of a directory
4 | listing when fetching a directory which contains an index file.
5 | --
6 | nginx_start
7 | diff -u "${TESTDIR}/has-index/index.html" <( fetch /has-index/ ) 1>&2
8 |
--------------------------------------------------------------------------------
/t/bug78-case-sensitive.test:
--------------------------------------------------------------------------------
1 | #! /bin/bash
2 | cat <<---
3 | This test checks that case-sensitive sorting works.
4 | --
5 |
6 | nginx_start 'fancyindex_case_sensitive on;'
7 | content=$(fetch /case-sensitivity/)
8 | grep -A 999 '\