diff --git a/config/nginx/homelab.conf b/config/nginx/homelab.conf index 8bf1877..e049219 100644 --- a/config/nginx/homelab.conf +++ b/config/nginx/homelab.conf @@ -58,7 +58,8 @@ server { # Explicitly allow WebDAV methods limit_except GET POST PUT DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK { deny all; } - proxy_pass http://127.0.0.1:8082/files$1; + # Pass original request URI to preserve URL encoding + proxy_pass http://127.0.0.1:8082; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -84,6 +85,10 @@ server { proxy_buffering off; proxy_request_buffering off; + # Critical: Use HTTP/1.1 and fix connection headers + proxy_http_version 1.1; + proxy_set_header Connection ""; + # Critical: Disable nginx response modifications proxy_redirect off; }