反向代理这块有点懵,nginx 配置老是 502,有大佬踩过坑吗?
server {
listen 80;
server_name halo.example.com;
location / {
proxy_pass http://127.0.0.1:8090;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
登录/注册