try it <br>key=filename<br><br> add_header Content-Disposition "attachment; filename=$arg_key";<br><br><br><br><br><div class="gmail_quote">2011/9/19 raffo <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I have created a public proxy with nginx but when i download files like<br>
"proxy.*****.com/?url=<a href="http://google.com/images/logo_sm.gif" target="_blank">google.com/images/logo_sm.gif</a>" the filename<br>
"logo_sm.gif" it's not save in browse as the real name but with the<br>
name: "download".<br>
<br>
I need a rewrite rules that rename the filename with $args of url.<br>
Eg:<br>
site.tld/?url=proxed.tld/file.zip<br>
<br>
the file.zip will be downloaded as "download" name, not with file.zip<br>
name. So i need a rule that rename the file with another with:<br>
site.tld/?url=proxed.tld/file.zip&=filename.zip<br>
<br>
This is very easy for who know rewrite of nginx, i searn a lot of<br>
combination but i loss only time..<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,215361,215361#msg-215361" target="_blank">http://forum.nginx.org/read.php?2,215361,215361#msg-215361</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br>