Nginx-Fancyindex-Theme icon indicating copy to clipboard operation
Nginx-Fancyindex-Theme copied to clipboard

302 Found

Open JohanSF opened this issue 5 years ago • 4 comments

Hi there, I just tried implementing this but i get 302 Found error: image Im running LE/nginx with this container: https://hub.docker.com/r/linuxserver/letsencrypt/

JohanSF avatar Dec 15 '19 23:12 JohanSF

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?

Naereen avatar Dec 16 '19 11:12 Naereen

This is without the theme: image 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: image The files from cloning the repo: image And I also tried with the release 1.1, neither seems to work for me. I am stumped.

JohanSF avatar Dec 17 '19 10:12 JohanSF

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.

JohanSF avatar Dec 17 '19 10:12 JohanSF

Thanks for the feedback. I don't really know…

Naereen avatar Dec 17 '19 10:12 Naereen