Re: Custom HTTP code in limit_except
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
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