在看这一节时https://ninghao.net/video/6913,出现502 Bad Gateway的错误。
ssh -vnNT -R 7689:localhost:3333 root@地址
本地3333端口是可以访问的
然后我用反向代理将端口代理到127.0.01:7689端口
#PROXY-START/
location ~* \.(php|jsp|cgi|asp|aspx)$
{
proxy_pass http://127.0.0.1:7689;
proxy_set_header Host $host;
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 http://127.0.0.1:7689;
proxy_set_header Host $host;
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
proxy_ignore_headers Set-Cookie Cache-Control expires;
add_header Cache-Control no-cache;
expires off;
}
#PROXY-END/
最后我访问http://h-store.siques.cn/

命令行的反馈

在日志里的记录
查阅了很多资料也解决不了,麻烦浩哥帮忙看一眼