这个站是: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/
复制代码
|
|