Добрый день! location /upload { upload_pass @back_to_page; upload_store /var/tmp; } location @back_to_page { #proxy_pass $http_referer; rewrite ^.*$ $http_referer; } Posted at Nginx Forum: http://forum.nginx.org/read.php?21,201091,201091#msg-201091