全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1221|回复: 13

[Windows VPS] 这个自建反代的问题咋解决?

[复制链接]
发表于 2020-12-23 20:54:46 | 显示全部楼层 |阅读模式
本帖最后由 Charlotte 于 2020-12-23 21:19 编辑

https://github.com/yujincheng08/BiliRoaming/wiki/%E8%87%AA%E5%BB%BA%E5%A4%87%E4%BB%BD%E6%9C%8D%E5%8A%A1%E5%99%A8
上面自建备份的地址
server {
    listen 443 ssl http2;
    server_name ****;
    root /usr/share/nginx/html;
    index index.php index.html;
    ssl_certificate /usr/local/etc/xray/cert/fullchain.cer;
    ssl_certificate_key /usr/local/etc/xray/cert/private.key;
    location /bff9 {
        proxy_redirect off;
        proxy_pass http://127.0.0.1:11234;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;
    }

}
重启ng之后  还是代理不了 是啥问题? 哪位能帮助下  
发表于 2020-12-23 20:55:45 | 显示全部楼层
没日志我觉得没办法
发表于 2020-12-23 20:56:23 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2020-12-23 20:57:31 | 显示全部楼层
Caxen 发表于 2020-12-23 20:56
直接反代https://api.bilibili.com,其他什么都不用管

proxy_set_header Host https://api.bilibili.com
改成这样 还是咋改?
发表于 2020-12-23 21:01:07 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2020-12-23 21:10:54 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2020-12-23 21:19:34 | 显示全部楼层
Caxen 发表于 2020-12-23 21:10
你的11234下面是什么服务,如果只有单台hk/tw小鸡的话按我说的配就好了,你这个配置是本地连其他鸡反代用 ...


bash <(curl -Ls https://raw.githubusercontent.com/atrandys/xray/main/install_triple_config.sh)
我用的这种一键包  生成默认的
server {
    listen       80;
    server_name  ****;
    root /usr/share/nginx/html;
    index index.php index.html;
    #rewrite ^(.*)$  https://$host$1 permanent;
}
server {
    listen 443 ssl http2;
    server_name ***;
    root /usr/share/nginx/html;
    index index.php index.html;
    ssl_certificate /usr/local/etc/xray/cert/fullchain.cer;
    ssl_certificate_key /usr/local/etc/xray/cert/private.key;
    location /bff9 {
        proxy_redirect off;
        proxy_pass http://127.0.0.1:11234;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;
    }
    location / {
        proxy_pass https://api.bilibili.com;
        proxy_set_header Host api.bilibili.com;
        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;

    }
}
发的帖子 是扶墙一键包 默认就有的
这个是改好之后的,好像是冲突还是咋? 能兼容吗? 我又想当梯子用 又想解锁b站区域
发表于 2020-12-23 21:24:41 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2020-12-23 21:30:01 | 显示全部楼层
Caxen 发表于 2020-12-23 21:24
重新看了下,这段应该是你的梯子,不冲突的


上面bff9哪个就是梯子的  但是 实际还是解锁不了......
发表于 2020-12-23 21:31:01 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-25 20:56 , Processed in 0.071926 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表