If someone is interested, here is a snippet of vcl_fetch for X-Accel-Redirect header handling: ... if ( obj.http.x-accel-redirect ~ ".*" ) { set req.url = obj.http.x-accel-redirect; restart; } ... -- Sergei Kononov