Nginx SSL 反向代理 502 排错

改用Nginx后遇到不少坑,记下反向代理SSL的问题

upstream ubuntu-server {
server 192.168.100.100;
}
server {
...
proxy_pass https://ubuntu-server;
...
}

HTTP这样没问题,SSL被爆502
upstream ubuntu-server {
server 192.168.100.100:443; <-- Here!
}