Welcome! Log In Create A New Profile

Advanced

Re: Full request line variable

September 20, 2009 04:28AM
On Sat, Sep 19, 2009 at 07:17:15PM -0700, Wohbah wrote:

>
> Igor,
>
> Thank you, but I believe the answers were given too fast.
>
> (0) We already considered default servers
> (1) $request_uri is not the actual, full, HTTP request line
> (2) nginx has NO way to match ^http after GET (that we found)
> (3) I suggest a new variable,
>
> $full_request_line =
> FULL TRUE HTTP REQUEST LINE
> - INCLUDING GET/PUT/POST/HEAD VERB
> - INCLUDING SCHEME
> - REGARDLESS OF SERVER BLOCK
>
>
> That would be fully general.
>
> We require that raw IP address reach our working server.
> So http://1.2.3.4/ must work like http://goodhostname.com/
> and can't go to a "_" 444 block as you suggest.
>
> We already thought of that and tried it a long time ago.
>
> But proxy attempts use http://1.2.3.4 too, so they can only be
> defeated with regular expressions. In nginx, this matching is
> nearly impossible, because of hidden assumptions in the
> software.
>
> Please consider $full_request_line for future improvement,
> thank you. Nginx is excellent and we appreciate your work.

Sorry, I mistaked: $request_uri is just URI part.
The required variable aleady exists: $request and it's usually used
in access_log.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Full request line variable

Anonymous User September 18, 2009 10:10PM

Re: Full request line variable

Joshua Zhu September 18, 2009 10:58PM

Re: Full request line variable

Igor Sysoev September 19, 2009 01:46AM

Re: Full request line variable

Igor Sysoev September 19, 2009 01:48AM

Re: Full request line variable

Wohbah September 20, 2009 02:30AM

Re: Full request line variable

Igor Sysoev September 20, 2009 04:28AM

Re: Full request line variable

Wohbah September 20, 2009 10:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 196
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