Open mid-kid opened 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.
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
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.
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;
What it says on the tin, pretty much. When using
fancyindex_header filename local;
, the page never includes a file listing.