aperezdc / ngx-fancyindex

Fancy indexes module for the Nginx web server
Other
849 stars 128 forks source link

File listing not displayed with local header. #120

Open mid-kid opened 3 years ago

mid-kid commented 3 years ago

What it says on the tin, pretty much. When using fancyindex_header filename local;, the page never includes a file listing.

davidjb commented 3 years ago

Confirmed on v0.5.1 with nginx 1.18.0; the header and footer display when using fancyindex_header and fancyindex_footer set as local the page lacks the actual listing. Using subrequest still works, though.

Bear-LB commented 1 year ago

Bump. Im using nginx-auth-ldap module as well If i use subrequest. This error appears #82 If i use local, my website actually loads but no files gets listed

Using v0.5.2 fancyindex and nginx 1.18.0

rkiss commented 7 months ago

Bump. Im using nginx-auth-ldap module as well If i use subrequest. This error appears #82 If i use local, my website actually loads but no files gets listed

Using v0.5.2 fancyindex and nginx 1.18.0

Same problem here. Looks like this two modules does not work together well.

stefandesu commented 6 months ago

It seems like the actual issue is that you cannot use local for both header and footer (for some reason). While researching the fancyindex module and themes, I stumbled upon this weird but apparently functional woraround: https://gitlab.com/Emeraude/nginx-fancyindex-theme/-/blob/e84613d8be139678e7193f90a09dd53d586c1ddf/theme.conf#L4

The relevant lines:

fancyindex_header /etc/nginx/themes/enhanceddefault/header.html local;
fancyindex_footer ../../../../../../../../../../etc/nginx/themes/enhanceddefault/footer.html;