nginx proxy pass content range
<p>How can I make nginx to send source server if <strong>Range</strong> header is passed by user?</p>

<p>Currently I am tried this, but not worked:</p>

<pre><code>server {
    location / {
        if ($http_range) {
            set $var_arg_range $http_range;
        }
        if ($arg_range) {
            set $var_arg_range "bytes=$arg_range";
        }
        proxy_set_header Range $var_arg_range;
        proxy_pass https://content-na.drive.amazonaws.com;
        proxy_set_header If-Range "";
        proxy_set_header Host content-na.drive.amazonaws.com;
        proxy_set_header Range $var_arg_range;
        proxy_set_header Accept-Encoding "";
    }
}
</code></pre>

<p>I need to make html5 videos streamable.</p>