Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File listing not displayed with local header. #120

Open
mid-kid opened this issue Nov 27, 2020 · 4 comments
Open

File listing not displayed with local header. #120

mid-kid opened this issue Nov 27, 2020 · 4 comments

Comments

@mid-kid
Copy link

mid-kid commented Nov 27, 2020

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

@davidjb
Copy link
Contributor

davidjb commented Aug 16, 2021

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
Copy link

Bear-LB commented Mar 3, 2023

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
Copy link

rkiss commented Apr 3, 2024

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
Copy link

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants