Welcome! Log In Create A New Profile

Advanced

Re: return 404 from map module default value

António P. P. Almeida
August 05, 2011 10:32PM
On 6 Ago 2011 02h53 WEST, nginx-forum@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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

return 404 from map module default value

zflairz August 05, 2011 09:21AM

Re: return 404 from map module default value

Maxim Dounin August 05, 2011 09:30AM

Re: return 404 from map module default value

Igor Sysoev August 05, 2011 09:34AM

Re: return 404 from map module default value

zflairz August 05, 2011 10:46AM

Re: return 404 from map module default value

Igor Sysoev August 05, 2011 11:46AM

Re: return 404 from map module default value

zflairz August 05, 2011 09:53PM

Re: return 404 from map module default value

António P. P. Almeida August 05, 2011 10:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 62
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready