---
title: "Discussion on \"Nginx Backup\" | Hashnode"
description: "Discussion on \"Nginx Backup\". Nginx config:\nupstream myapp1 {\n    server 127.0.0.1:9001 max_fails=1 fail_timeout=10s;\n    server 127.0.0.1:9002 backup;\n}\n\nIf there is 1 fail in 10 seconds, then send all requests to the backup server (9002) and keep sending requests to 9002 for 10..."
url: "https://hashnode.com/posts/nginx-backup/6100297d2db92534dc93139e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Nginx Backup](https://hn.0xbf.me/nginx-backup?utm_source=hashnode&utm_medium=feed)

Nginx config: upstream myapp1 { server 127.0.0.1:9001 max\_fails=1 fail\_timeout=10s; server 127.0.0.1:9002 backup; } If there is 1 fail in 10 seconds, then send all requests to the backup server (9002) and keep sending requests to 9002 for 10...

Jul 27, 2021 · 1 min read · hn.0xbf.me  
Read the article

-   [#nginx](https://hashnode.com/tag/nginx)

## Written by

[0xBF](https://hashnode.com/@0xbf)

@0xbf

  
[View profile](https://hashnode.com/@0xbf)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
