zlzlzl 发表于 2021-1-25 16:35:29

【待反馈】为什么有一个站明明可以访问,反向代理会 502

这个站是:https://hackertab.pupubird.com
服务是:https://hackertab.pupubird.com/repositories?since=daily

可以重现,别的站点和 api 就没问题,直接访问也没问题,请问需要怎么设置?



#PROXY-START/
location ~* \.(php|jsp|cgi|asp|aspx)$
{
      proxy_pass https://hackertab.pupubird.com;
    proxy_set_header Host hackertab.pupubird.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;
}
location /
{
    proxy_pass https://hackertab.pupubird.com;
    proxy_set_header Host hackertab.pupubird.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;
   
    add_header X-Cache $upstream_cache_status;
   
    #Set Nginx Cache
   
            add_header Cache-Control no-cache;
    expires 12h;
}

#PROXY-END/

大炮运维V587 发表于 2021-1-26 09:10:11

看下网站错误日志
页: [1]
查看完整版本: 【待反馈】为什么有一个站明明可以访问,反向代理会 502