comparison src/http/ngx_http_upstream.h @ 5231:05c53652e7b4

Upstream: http_403 support in proxy_next_upstream (and friends). The parameter is mostly identical to http_404, and is expected to be used in similar situations. The 403 code might be returned by a backend instead of 404 on initial sync of new directories with rsync. See here for feature request and additional details: http://mailman.nginx.org/pipermail/nginx-ru/2013-April/050920.html
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 27 May 2013 16:54:09 +0400
parents 7fa7e60a7f66
children 43ccaf8e8728
comparison
equal deleted inserted replaced
5230:2139768ee404 5231:05c53652e7b4
22 #define NGX_HTTP_UPSTREAM_FT_INVALID_HEADER 0x00000008 22 #define NGX_HTTP_UPSTREAM_FT_INVALID_HEADER 0x00000008
23 #define NGX_HTTP_UPSTREAM_FT_HTTP_500 0x00000010 23 #define NGX_HTTP_UPSTREAM_FT_HTTP_500 0x00000010
24 #define NGX_HTTP_UPSTREAM_FT_HTTP_502 0x00000020 24 #define NGX_HTTP_UPSTREAM_FT_HTTP_502 0x00000020
25 #define NGX_HTTP_UPSTREAM_FT_HTTP_503 0x00000040 25 #define NGX_HTTP_UPSTREAM_FT_HTTP_503 0x00000040
26 #define NGX_HTTP_UPSTREAM_FT_HTTP_504 0x00000080 26 #define NGX_HTTP_UPSTREAM_FT_HTTP_504 0x00000080
27 #define NGX_HTTP_UPSTREAM_FT_HTTP_404 0x00000100 27 #define NGX_HTTP_UPSTREAM_FT_HTTP_403 0x00000100
28 #define NGX_HTTP_UPSTREAM_FT_UPDATING 0x00000200 28 #define NGX_HTTP_UPSTREAM_FT_HTTP_404 0x00000200
29 #define NGX_HTTP_UPSTREAM_FT_BUSY_LOCK 0x00000400 29 #define NGX_HTTP_UPSTREAM_FT_UPDATING 0x00000400
30 #define NGX_HTTP_UPSTREAM_FT_MAX_WAITING 0x00000800 30 #define NGX_HTTP_UPSTREAM_FT_BUSY_LOCK 0x00000800
31 #define NGX_HTTP_UPSTREAM_FT_MAX_WAITING 0x00001000
31 #define NGX_HTTP_UPSTREAM_FT_NOLIVE 0x40000000 32 #define NGX_HTTP_UPSTREAM_FT_NOLIVE 0x40000000
32 #define NGX_HTTP_UPSTREAM_FT_OFF 0x80000000 33 #define NGX_HTTP_UPSTREAM_FT_OFF 0x80000000
33 34
34 #define NGX_HTTP_UPSTREAM_FT_STATUS (NGX_HTTP_UPSTREAM_FT_HTTP_500 \ 35 #define NGX_HTTP_UPSTREAM_FT_STATUS (NGX_HTTP_UPSTREAM_FT_HTTP_500 \
35 |NGX_HTTP_UPSTREAM_FT_HTTP_502 \ 36 |NGX_HTTP_UPSTREAM_FT_HTTP_502 \
36 |NGX_HTTP_UPSTREAM_FT_HTTP_503 \ 37 |NGX_HTTP_UPSTREAM_FT_HTTP_503 \
37 |NGX_HTTP_UPSTREAM_FT_HTTP_504 \ 38 |NGX_HTTP_UPSTREAM_FT_HTTP_504 \
39 |NGX_HTTP_UPSTREAM_FT_HTTP_403 \
38 |NGX_HTTP_UPSTREAM_FT_HTTP_404) 40 |NGX_HTTP_UPSTREAM_FT_HTTP_404)
39 41
40 #define NGX_HTTP_UPSTREAM_INVALID_HEADER 40 42 #define NGX_HTTP_UPSTREAM_INVALID_HEADER 40
41 43
42 44