Welcome! Log In Create A New Profile

Advanced

Re: canonicalization of $uri with "/?.*" content

April 17, 2015 09:10AM
>When I request http://example.com/?Open, what response do you want to send me?

301 to /: this would do the canonicalization,
> location = / { if ($is_args) { return 301 /; } }

404: this would correspond to reality,
> location = / { if ($is_args) { return 404; } }

However, if one compiled nginx without the scripting engines, shouldn't it return 404 by default,
instead of returning 200 while ignoring $uri's content?
Subject Author Posted

canonicalization of $uri with "/?.*" content

173279834462 April 16, 2015 10:13AM

Re: canonicalization of $uri with "/?.*" content

Francis Daly April 17, 2015 03:16AM

Re: canonicalization of $uri with "/?.*" content

173279834462 April 17, 2015 09:10AM

Re: canonicalization of $uri with "/?.*" content

Francis Daly April 18, 2015 04:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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