Welcome! Log In Create A New Profile

Advanced

Rewrite with permanent and last

neubyr
November 19, 2014 05:38PM
Is it possible to rewrite URL with HTTP 301 and make that last rule in
current ruleset? For example, in apache one can use flags "[R=301,L]" , but
how can one do it in nginx? I tried using following, but it returned syntax
error:

Config: rewrite /members /users permanent last;

Error: nginx: [emerg] invalid number of arguments in "return" directive in
/etc/nginx/nginx.conf:60

Any help?

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

Rewrite with permanent and last

neubyr November 19, 2014 05:38PM

Re: Rewrite with permanent and last

Francis Daly November 19, 2014 05:46PM

Re: Rewrite with permanent and last

neubyr November 19, 2014 05:58PM

Re: Rewrite with permanent and last

mex November 20, 2014 05:15PM

Re: Rewrite with permanent and last

neubyr November 20, 2014 05:24PM

Re: Rewrite with permanent and last

B.R. November 20, 2014 05:30PM

Re: Rewrite with permanent and last

Francis Daly November 20, 2014 07:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 111
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