NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.96k stars 2.66k forks source link

Files in root directory not loading. Content-Length 0 #3021

Open jruth85 opened 1 year ago

jruth85 commented 1 year ago

I have a switch with a webUI I wanted to put behind NPM but after setting it up and trying to access it the CSS and JS files don't load.

It seems to only affect files in the root (/) location. There's a couple files in /DS that load fine.

nginx

It says it loads it, but the file is empty.

nginx1

What it looks like when connecting to the switch directly.

nginx2

This one that's not in the root directory loads fine.

Does anyone know what could be causing this or how to fix it?

Thanks in advance.

jruth85 commented 1 year ago

So digging around further I found that I can download the files in the root directory through the proxy address if I add --compressed and --http1.1. I tried configuring these options under the advanced tab with the following:

gzip on;
gzip_types text/css text/scss text/plain text/xml application/xml application/json application/javascript;
proxy_http_version 1.1;

But that still doesn't work. If anyone knows what I'm doing wrong I'd appreciate the help.

jruth85 commented 1 year ago

Even more troubleshooting: The site loads fine if I turn off SSL. This doesn't really help since I only have port 443 forwarded to my NPM instance, but it is interesting.

If it wasn't clear already, I have no idea what I'm doing.

github-actions[bot] commented 9 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1: