With regard to proxy forwarding, it applies to the case of one https certificate and multiple sites
Carry a proxy server
Add the specified variable value such as serverid=x in the passing parameter, and add the mapping of this variable in the nginx configuration
Map $arg_serverid $source {
X ip
}
Map $arg_serverid $myhost {
X host
}
Add location configuration to server
Location / {
Proxy_set_header Host $myhost
Proxy_set_header X-Real-IP $remote_addr
Proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
Proxy_ignore_headers Cache-Control Expires Set-Cookie X-Accel-Expires
Proxy_pass http://$source;
}