Skip to content
New issue

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

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

Already on GitHub? # to your account

Alist Nginx二级目录配置后,管理员页面主页点击跳转错误 #5110

Closed
4 tasks done
FocusProgram opened this issue Aug 28, 2023 · 5 comments
Closed
4 tasks done
Labels
bug Something isn't working

Comments

@FocusProgram
Copy link

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.26.0

Driver used / 使用的存储驱动

阿里云盘Open

Describe the bug / 问题描述

在配置Nginx中配置

location /alist/ {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Range $http_range;
    proxy_set_header If-Range $http_if_range;
    proxy_redirect off;
    proxy_pass http://127.0.0.1:5244/alist/;
    # the max size of file to upload
    client_max_body_size 20000m;
}

在/data/config.json

"site_url": "/alist"

在管理员面板中点击主页一直重定向到一级目录:http://127.0.0.1,而不是配置的二级目录:http://127.0.0.1/alist

在查看历史issues中,发现是不是由于solve alist-org/alist#4784 commit feat: open home in current tab 导致

Reproduction / 复现链接

Local test, not available

Config / 配置

其他保持默认,修改如下:

"site_url": "/alist"

Logs / 日志

No response

@FocusProgram FocusProgram added the bug Something isn't working label Aug 28, 2023
@welcome
Copy link

welcome bot commented Aug 28, 2023

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

@xhofe
Copy link
Collaborator

xhofe commented Aug 29, 2023

image
无法复现

@FocusProgram
Copy link
Author

image

image

我这边就是Nginx 80代理了一下,没有用默认的5245,点击主页herf是http://p-alist.com/alist,但是点击后就跳转到http://p-alist.com

@shenlijun
Copy link

确实是最近版本的问题,我刚想发个issue,看来下次版本更新就好了

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants