Welcome! Log In Create A New Profile

Advanced

Beginner question:Nginx request_uri meaning ?

Bike dernikov1
January 11, 2017 11:20AM
Hi, i have "simple" question, need simple explanation. It's driving me
nuts.

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: http://www.example.com/index.html

Full request URI is the same: http://example.com/index.html

$request_uri=http://example.com/index.html.

As i understand then line:

return 301 $scheme://example1.com$request_uri;

must return:

http://example1.comhttp://example.com/index.html.

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.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Beginner question:Nginx request_uri meaning ?

Bike dernikov1 January 11, 2017 11:20AM

Re: Beginner question:Nginx request_uri meaning ?

Maxim Dounin January 11, 2017 12:30PM

Re: Beginner question:Nginx request_uri meaning ?

Bike dernikov1 January 12, 2017 03:46AM

Re: Beginner question:Nginx request_uri meaning ?

Maxim Dounin January 12, 2017 08:42AM

Re: Beginner question:Nginx request_uri meaning ?

tokers January 23, 2017 04:15AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready