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

如何使用路径访问 #7494

Closed
4 tasks done
aba666666 opened this issue Nov 12, 2024 · 2 comments
Closed
4 tasks done

如何使用路径访问 #7494

aba666666 opened this issue Nov 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@aba666666
Copy link

aba666666 commented Nov 12, 2024

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 this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

使用路径访问,比如www.*.com/alist/

Suggested solution / 实现思路

No response

Additional context / 附件

No response

@aba666666 aba666666 added the enhancement New feature or request label Nov 12, 2024
@aba666666 aba666666 changed the title 如何修改静态资源路径 如何使用路径访问 Nov 17, 2024
@YangRucheng
Copy link
Contributor

配置 -> 网站设置 -> 基本路径(旧版)或 site_url

@aba666666
Copy link
Author

aba666666 commented Dec 7, 2024

配置 -> 网站设置 -> 基本路径(旧版)或 site_url

QQ_1733547034707
这个配置文件是有问题的,静态资源无法加载,请参考我给出的配置。
location = /alist {
rewrite ^/(.*)$ $1/ permanent;
}

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/;#如果不映射端口,可以docker inspect 容器ID | grep IPAddress查看容器IP
client_max_body_size 20000m;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants