Re: Custom HTTP code in limit_except

2018-08-13 Thread 5lava
Bump Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280084,280867#msg-280867 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Custom HTTP code in limit_except

2018-06-07 Thread 5lava
I'd like to find an elegant and efficient solution to redirect GET and HEAD requests using code 301, but requests with other methods — using code 308. Intuitively I wrote this: location /foo { limit_except GET { return 301 /bar; } return 308 /bar; } But allowed context for "return" are