Try this redirect as a starting point and customize to your multi-site setup:
sub vcl_recv {
if ( (req.http.host ~ "^(?i)somesite.org" || req.http.host ~ "^(?i)www.somesite.org")
&& req.http.X-Forwarded-Proto !~ "(?i)https") {
set req.http.x-Redir-Url = "https://www.somesite.org" + req.url;
error 750 req.http.x-Redir-Url;
}
}
sub vcl_error {
if (obj.status == 750) {
set obj.http.Location = obj.response;
set obj.status = 302;
return (deliver);
}
Referenced from this link:
Useful when you want to redirect the clients to an SSL-version of your
site, given that your varnish instance is running behind some
SSL-termination point, such as a nginx instance with SSL enabled.