Nginx-Fancyindex-Theme
Nginx-Fancyindex-Theme copied to clipboard
302 Found
Hi there, I just tried implementing this but i get 302 Found error:
Im running LE/nginx with this container: https://hub.docker.com/r/linuxserver/letsencrypt/
Hi @JohanSF, Thanks for trying this package. I won't have access to a machine able to run this docker container, until a few weeks, so I'm sorry but cannot try to replicate your issue.
Are you able to give me more information?
I do not know what to tell you except that a 302 error indicates a redirection to follow. Maybe the solution is to change the javascript code that fetches the HEADER.md and README.md files, in order to follow this redirection?
This is without the theme:
The code is this:
location /newsmags {
fancyindex on; # Enable fancy indexes.
fancyindex_localtime on;
fancyindex_exact_size off; # Output human-readable file sizes.
fancyindex_header "/config/www/Nginx-Fancyindex-Theme-dark/header.html";
fancyindex_footer "/config/www/Nginx-Fancyindex-Theme-dark/footer.html";
#fancyindex_ignore "examplefile.html";
fancyindex_name_length 255;
auth_request /auth-3; #For server-auth with Organizr, remove unless you use Organizr.
alias /config/www/newsmags;
include /config/nginx/proxy.conf;
}
I tinkered around and found that no matter what I set the fancyindex_header to, for instance a file that does not exist, I get the 302 Found error :S but I am sure the path is correct, and it is confirmed by that fact that the alias command works. And even further proof:
The files from cloning the repo:
And I also tried with the release 1.1, neither seems to work for me. I am stumped.
I see you put the bug tag on, but your theme is not the source of the error. As I get the error no matter what I set the header or footer to.
Thanks for the feedback. I don't really know…