跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 反代alist 参数应该怎么设置?nginx
未分類
31 12 月 2023

反代alist 参数应该怎么设置?nginx

nut 大佬有话说 :

反代alist 参数应该怎么设置?nginx

试了好几个,返回空白页面。

e2e 大佬有话说 :

找我整caddy反代。

daili.ws 大佬有话说 :

本帖最后由 daili.ws 于 2023-12-31 10:39 编辑

xxx.xxx.xxx.xxx是你的alist地址
3721是你的alist端口
kkk.xxx.xxx.xxx;是你绑定得域名
server {
    listen 80;
    server_name kkk.xxx.xxx.xxx;

   
    location / {
      if ($host != ‘kkk.xxx.xxx.xxx’) {
            return 301 https://wget.at;
      }
      proxy_pass http://xxx.xxx.xxx.xxx:3721;
      proxy_set_header Host xxx.xxx.xxx.xxx;
      proxy_ssl_server_name on;
      proxy_ssl_name xxx.xxx.xxx.xxx;
      gzip_proxied any;
      proxy_set_header Referer $http_referer;
      proxy_set_header User-Agent $http_user_agent;
      proxy_redirect off;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header REMOTE-HOST $remote_addr;
      add_header X-Cache $upstream_cache_status;
      proxy_ignore_headers Set-Cookie Cache-Control expires;
    }
}

nut 大佬有话说 :

daili.ws 大佬有话说 : 2023-12-31 10:37
xxx.xxx.xxx.xxx是你的alist地址
3721是你的alist端口
kkk.xxx.xxx.xxx;是你绑定得域名

301跳到里去了

lua618 大佬有话说 :

alist文档有反带配置

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具