Thank you Maxim and tqvn2004!  I placed the following in my location directive:<div><br></div><div>proxy_set_header X-Rewrite-URL $request_uri;</div><div><br></div><div>And it worked!</div><div><br></div><div><div class="gmail_quote">
On Tue, Sep 21, 2010 at 4:21 PM, Maxim Dounin <span dir="ltr">&lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello!<br>
<div><div></div><div class="h5"><br>
On Tue, Sep 21, 2010 at 03:21:31PM -0400, Arthur Blake wrote:<br>
<br>
&gt; When rewriting a url with the rewrite directive, is it possible to save the<br>
&gt; original url in a request header for the downstream handler?<br>
&gt;<br>
&gt; Similar to the X-Rewrite-URL header built in to ISAPI rewrite.<br>
&gt; Or in Apache, I can do it with something like:<br>
&gt;<br>
&gt; #== Capture original uri and query string into environment variable so it<br>
&gt; can be put in a header<br>
&gt; #== Match non-empty query string<br>
&gt; RewriteCond %{QUERY_STRING} (^.+$)<br>
&gt; RewriteRule (.*) $1 [E=x-rewrite-url:$1?%1]<br>
&gt;<br>
&gt; If this is possible in nginx, how would I do it?<br>
<br>
</div></div><a href="http://wiki.nginx.org/NginxHttpCoreModule#.24request_uri" target="_blank">http://wiki.nginx.org/NginxHttpCoreModule#.24request_uri</a><br>
<font color="#888888"><br>
Maxim Dounin<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>