Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: отдавать статическую ст раницу, если кончились ups tream
- To: nginx-ru@xxxxxxxxx
- Subject: Re: отдавать статическую ст раницу, если кончились ups tream
- From: Sergey Shepelev <temotor@xxxxxxxxx>
- Date: Mon, 26 Apr 2010 17:31:05 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=t7D/6Yh9xscHI6LDAcAfzTvb0r/uovR62/PyrC6TLGg=; b=XK7xkjDWl+9gTzl2qr6zAJHpJBAnpcgSm223RH8euWVVFn8yqOvfeXIQpWoScNe5+E njaxADF2aDZE0iwgV/qm8vQ6mkC3XJ/vVi9/XKA2guXFaF3xei2Y91wQ0FsnV9pGS2mJ JF6UiEFaX22C2fPDQG5j55a8WmgBXKT3cUfHg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=m0zUXcVG0XGLmKTudznIqeyQt9/rskOhQ0D4Bjc3igTOJ2Id4EVnUJhLyHxtt7C3w/ ekP/huw1xttmQ1j3mhRDcNBn3OJflNkvQ7pZDxXzdeWNq016UTZjqR/o0wLPI7lgycVb BTIHcCNBrBVTedDerhlFoN1I+auvOxGognp6E=
- In-reply-to: <y2i6ad5d0a51004260624j21a56c22z4c3b5cfb88202823@xxxxxxxxxxxxxx>
- References: <y2i6ad5d0a51004260624j21a56c22z4c3b5cfb88202823@xxxxxxxxxxxxxx>
2010/4/26 Игорь Хомяков <homyakov@xxxxxxxxx>:
> Здравствуйте!
>
> Подскажите как сделать чтобы в ситуации когда все upstream-ы умерли
> (upstream timeout) nginx отдавал бы просто
> статическую страницу.
>
error_page 504.
Пример:
locaton / {
proxy_pass http://up;
error_page 504 = /upstream-timeout.html;
}
location = /upstream-timeout.html {
root /foo/bar/zoo;
}
> --
> WBR
> Igor Homyakov
> System Administrator, Embria
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru
>
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|