Beginner question:Nginx request_uri meaning ?

Bike dernikov1 dernikov1 at
Wed Jan 11 16:18:26 UTC 2017

Hi, i have "simple" question, need simple explanation. It's driving me

In nginx configuration what is meaning of  $request_uri in line?

return 301 $scheme://example.com1$request_uri;
In documentation  write: $request_uri is full  request URI.
I will try to describe my doubth.

Simple request URL:

Full request URI is the same:


As i understand then line:

 return 301 $scheme://$request_uri;

must return:


But that  cannot be correct.

So what mean var $request_uri ? Is defined wrong in documentation. (or URI
is not what i described ?) or it mean something different, or it mean
something different in combination with return ??
Thanks for help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list