Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location / {
- error_page 598 = @retry;
- error_page 599 = @no_retry;
- if ($request_method = POST) {
- return 599;
- }
- return 598;
- }
- location @retry {
- proxy_pass http://backend;
- }
- location @no_retry {
- proxy_pass http://backend;
- proxy_next_upstream off;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement