[GH-ISSUE #303] about nginx proxy_pass #158

Closed
opened 2026-04-08 16:50:45 +03:00 by zhus · 2 comments
Owner

Originally created by @newdee on GitHub (Nov 30, 2023).
Original GitHub issue: https://github.com/sigoden/dufs/issues/303

hi, thanks for this dufs tools,
I use nginx proxy_pass, and send to the dufs server, nginx config like this:

 location /file/ {
                #proxy_set_header X-Real-IP $remote_addr;
                #proxy_set_header HOST $http_host;
                proxy_pass http://192.168.100.210:25000/;
                #proxy_redirect off;
        }

but when I access the domain/file, it can not show the static files correctly, such as the __dufs_v0.34.2_index.js not in domain/file/__dufs_v0.34.2_index.js but domain/__dufs_v0.34.2_index.js

so ,how should I proxy_pass it in nginx when we access domain not on / path?

Originally created by @newdee on GitHub (Nov 30, 2023). Original GitHub issue: https://github.com/sigoden/dufs/issues/303 hi, thanks for this dufs tools, I use nginx proxy_pass, and send to the dufs server, nginx config like this: ``` location /file/ { #proxy_set_header X-Real-IP $remote_addr; #proxy_set_header HOST $http_host; proxy_pass http://192.168.100.210:25000/; #proxy_redirect off; } ``` but when I access the domain/file, it can not show the static files correctly, such as the __dufs_v0.34.2_index.js not in domain/file/__dufs_v0.34.2_index.js but domain/__dufs_v0.34.2_index.js so ,how should I proxy_pass it in nginx when we access domain not on / path?
zhus closed this issue 2026-04-08 16:50:45 +03:00
Author
Owner

@sigoden commented on GitHub (Nov 30, 2023):

try dufs --path-prefix /file

<!-- gh-comment-id:1833332541 --> @sigoden commented on GitHub (Nov 30, 2023): try `dufs --path-prefix /file`
Author
Owner

@newdee commented on GitHub (Nov 30, 2023):

its ok, thank you ~

<!-- gh-comment-id:1833348383 --> @newdee commented on GitHub (Nov 30, 2023): its ok, thank you ~
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#158