return 404 from map module default value

zflairz nginx-forum at
Sat Aug 6 01:53:54 UTC 2011

okay, I see. By adding a slash ($uri/) solved the index problem.

Another minor stuff is: I didn't see following return syntax on the
website (
Is the uri after return code newly added (as an optional value)? I'm
using Nginx 1.0.4. Thanks.

return 301 $redirected_uri;

Posted at Nginx Forum:,213431,213440#msg-213440

More information about the nginx mailing list