return 404 from map module default value
António P. P. Almeida
appa at perusio.net
Sat Aug 6 02:28:25 UTC 2011
On 6 Ago 2011 02h53 WEST, nginx-forum at nginx.us wrote:
> 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 (http://wiki.nginx.org/HttpRewriteModule#return)
> Is the uri after return code newly added (as an optional value)? I'm
> using Nginx 1.0.4. Thanks.
>
> return 301 $redirected_uri;
AFAIK, it's undocumented. If you specifie the URL you can get by with
just a parameter, it issues a temporary redirect.
return http://my.redirected.url.here;
--- appa
More information about the nginx
mailing list