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

更新 子目录反向代理 配置 #386

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

skyczhao
Copy link

@skyczhao skyczhao commented Oct 26, 2024

删除proxy_pass的/alist路径,路径是被代理服务器使用,alist服务作为源就不需要添加

删除proxy_pass的/alist路径,路径是被代理服务器使用,alist服务作为源就不需要添加
remove /alist path in proxy_pass, the proxy server would use it, not the alist source server
Copy link

netlify bot commented Oct 26, 2024

Deploy Preview for alist-doc ready!

Name Link
🔨 Latest commit b9acdf1
🔍 Latest deploy log https://app.netlify.com/sites/alist-doc/deploys/671c3dc71c9515000884ccec
😎 Deploy Preview https://deploy-preview-386--alist-doc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Troray
Copy link
Contributor

Troray commented Dec 24, 2024

删除proxy_pass的/alist路径,路径是被代理服务器使用,alist服务作为源就不需要添加

b9acdf1#diff-17dc5ccadd4530359f60f32d0a8ef2f3bad760961d349e7cf290bfa84bc2999fL41

我没记错的话

location /alist/ {
    proxy_pass http://127.0.0.1:5244/      # 不带目录

这样的话,当访问 http://your-domain/alist/path 时,请求会被转发到 http://127.0.0.1:5244/path

location /alist/ {
    proxy_pass http://127.0.0.1:5244/alist;   # 末尾不带斜杠

请求 /alist/path → 会转发到 http://127.0.0.1:5244/alistpath

文档中应该是正确的。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants