Re: Rewrite with permanent and last

2014-11-20 Thread Francis Daly
On Thu, Nov 20, 2014 at 02:22:48PM -0800, neubyr wrote: > On Thu, Nov 20, 2014 at 2:15 PM, mex wrote: Hi there, > > nginx has a last flag too: > > > > http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite > > Yes, I was trying to use it along with permanent and that doesn't work. M

Re: Rewrite with permanent and last

2014-11-20 Thread B.R.
As what you imply is not stated in the documentation, I would say you are mistaken. If you need help, and as requested sooner, some configuration snippet(s) might be more than helpful... --- *B. R.* On Thu, Nov 20, 2014 at 11:22 PM, neubyr wrote: > > > On Thu, Nov 20, 2014 at 2:15 PM, mex wrot

Re: Rewrite with permanent and last

2014-11-20 Thread neubyr
On Thu, Nov 20, 2014 at 2:15 PM, mex wrote: > nginx has a last flag too: > > http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite Yes, I was trying to use it along with permanent and that doesn't work. May be 'permanent' implies 'last' as well. - N ___

Re: Rewrite with permanent and last

2014-11-20 Thread mex
nginx has a last flag too: http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254969,255005#msg-255005 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/lis

Re: Rewrite with permanent and last

2014-11-19 Thread neubyr
On Wed, Nov 19, 2014 at 2:44 PM, Francis Daly wrote: > On Wed, Nov 19, 2014 at 02:37:11PM -0800, neubyr wrote: > > Hi there, > > > Is it possible to rewrite URL with HTTP 301 and make that last rule in > > current ruleset? > > Is that not what the flag "permanent" does? > > http://nginx.org/r/rew

Re: Rewrite with permanent and last

2014-11-19 Thread Francis Daly
On Wed, Nov 19, 2014 at 02:37:11PM -0800, neubyr wrote: Hi there, > Is it possible to rewrite URL with HTTP 301 and make that last rule in > current ruleset? Is that not what the flag "permanent" does? http://nginx.org/r/rewrite If not, can you show the config snippet, the request you make, an

Rewrite with permanent and last

2014-11-19 Thread neubyr
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: [emer