Welcome! Log In Create A New Profile

Advanced

http_404 and proxy_next_upstream

Ruslan Bukin
February 27, 2011 04:52AM
в данном примере nginx в цикле дергает foc02:

upstream backend {
server foc02.rambler.ru:8022;
server foc06.rambler.ru:8022 backup;
}

location /callbacks/set_status/ {
proxy_pass http://backend;
proxy_next_upstream error timeout invalid_header http_404;
}


(/callbacks/set_status/ настроен на возврат 404)

В случае если убрать пометку backup со второго сервера,
то работает нормально (по 1 разу последовательно дергает оба сервера)


-Ruslan


_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

http_404 and proxy_next_upstream

Ruslan Bukin February 27, 2011 04:52AM

Re: http_404 and proxy_next_upstream

Maxim Dounin February 27, 2011 06:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 254
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready