Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

反向代理后 下载按钮的链接不正确 #3644

Closed
4 tasks done
wudiming opened this issue Feb 27, 2023 · 5 comments
Closed
4 tasks done

反向代理后 下载按钮的链接不正确 #3644

wudiming opened this issue Feb 27, 2023 · 5 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@wudiming
Copy link

wudiming commented Feb 27, 2023

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure it's due to alist and not something else(such as Dependencies or Operational).
  • I'm sure I'm using the latest version

Alist Version / Alist 版本

v3.12.2

Driver used / 使用的存储驱动

本机存储

Describe the bug / 问题描述

通过ipv6端口转发的方式连接外网,为能使ipv4端也可以访问,采用了双栈服务器反向代理了一下,可以正常访问。
在下载本机存储的文件时,点击下载,网站是原ipv6的地址,导致无法下载文件,但是点击复制链接 ,通过该连接能正确下载文件。
希望可以调整下下载按钮的链接策略

Reproduction / 复现链接

Logs / 日志

No response

@wudiming wudiming added the bug Something isn't working label Feb 27, 2023
@welcome
Copy link

welcome bot commented Feb 27, 2023

Thanks for opening your first issue here! Be sure to follow the issue template!

@xhofe
Copy link
Collaborator

xhofe commented Feb 27, 2023

you need to pass your host while do reverse proxy, such as:

location / {
    proxy_set_header Host $http_host;
}

@xhofe xhofe added the invalid This doesn't seem right label Feb 27, 2023
@github-actions
Copy link

Hello @wudiming, your issue is invalid and will be closed.
你好 @wudiming,你的issue无效,将被关闭。

@jyjxqy
Copy link

jyjxqy commented Jul 29, 2024

proxy_set_header X-Forwarded-Host $http_host; # 添加这一行楼上的添加Host是错的,耽误我半小时

@Huayuluoshi
Copy link

proxy_set_header X-Forwarded-Host $http_host; # 添加这一行楼上的添加Host是错的,耽误我半小时

确实应该填写这个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants