Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
April 18, 2015 04:28AM
On Fri, Apr 17, 2015 at 09:10:34AM -0400, 173279834462 wrote:

Hi there,

> 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?

I'd say "no".

If you want your instance to care more about $query_string than the
default, you can configure it to, for example as above.

Cheers,

f
--
Francis Daly francis@daoine.org

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