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

173279834462 nginx-forum at nginx.us
Fri Apr 17 13:10:34 UTC 2015


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

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258101,258153#msg-258153



More information about the nginx mailing list