Valentin Bartenev
0be9554bda
Proxy: added variables and regexp support to the first parameter of
...
the "proxy_redirect" directive.
2011-12-12 09:02:29 +00:00
Maxim Dounin
86a851907b
Fixed Upgrade header clearing with proxy_cache.
...
This was missed in proxy HTTP/1.1 support commit (r4127).
2011-11-14 13:21:10 +00:00
Maxim Dounin
962727b259
Fixed proxy_set_header inheritance with proxy_set_body.
2011-11-14 13:19:56 +00:00
Maxim Dounin
b5984de06b
Fixed proxy_set_header inheritance with proxy_cache (ticket #45 ).
...
Headers cleared with cache enabled (If-Modified-Since etc.) might be cleared
in unrelated servers/locations without proxy_cache enabled if proxy_cache was
used in some server/location.
Example config which triggered the problem:
proxy_set_header X-Test "test";
server { location /1 { proxy_cache name; proxy_pass ... } }
server { location /2 { proxy_pass ... } }
Another one:
server {
proxy_cache name;
location /1 { proxy_pass ... }
location /2 { proxy_cache off; proxy_pass ... }
}
In both cases If-Modified-Since header wasn't sent to backend in location /2.
Fix is to not modify conf->headers_source, but instead merge user-supplied
headers from conf->headers_source and default headers (either cache or not)
into separate headers_merged array.
2011-11-14 13:18:15 +00:00
Maxim Dounin
8650c1eb24
Wording fix, "many data" is incorrect.
...
Noted by Piotr Sikora.
2011-10-12 13:24:59 +00:00
Maxim Dounin
5c56f20ae7
Proxy: logging levels tuned, double logging fixed.
2011-09-25 20:04:20 +00:00
Maxim Dounin
aa12f3c7f3
Proxy: whitespaces after chunk size allowed.
...
Whitespaces after chunk size seems to be be allowed by the "implied *LWS" rule
and emitted by some servers.
2011-09-25 20:03:27 +00:00
Maxim Dounin
2fe0a7a0f6
Proxy: basic HTTP/1.1 support (including keepalive).
...
By default we still send requests using HTTP/1.0. This may be changed with
new proxy_http_version directive.
2011-09-15 19:23:20 +00:00
Maxim Dounin
f2fcf11b25
Protocol version parsing in ngx_http_parse_status_line().
...
Once we know protocol version, set u->headers_in.connection_close to indicate
implicitly assumed connection close with HTTP before 1.1.
2011-09-15 19:22:35 +00:00
Maxim Dounin
9bc8fc4602
Fixing proxy_set_body and proxy_pass_request_body with SSL.
...
Flush flag wasn't set in constructed buffer and this prevented any data
from being actually sent to upstream due to SSL buffering. Make sure
we always set flush in the last buffer we are going to sent.
See here for report:
http://nginx.org/pipermail/nginx-ru/2011-June/041552.html
2011-08-18 16:34:24 +00:00
Igor Sysoev
c9468026e7
test length of proxy_pass with variables
...
patch by Lanshun Zhou
2011-07-30 06:11:46 +00:00
Igor Sysoev
c2f852c260
update r3945 with more descriptive error message
2011-07-29 15:33:03 +00:00
Igor Sysoev
b2492255f8
always test proxy_redirect with slash, this fixes a case when nginx uses
...
proxy_pass "http://www ", upstream redirects to "http://www.host/uri ",
and nginx rewrites it as ".host/uri"
patch by Maxim Dounin
2011-02-17 11:54:35 +00:00
Igor Sysoev
81cd5e4f6f
*) make code consistent to fastcgi, etc
...
*) remove STUB comment
2010-08-03 12:59:14 +00:00
Igor Sysoev
e4994fbacb
use NULL instead of 0
2010-08-03 12:53:06 +00:00
Igor Sysoev
90f95522a5
inherit proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass inside
...
a limit_except block if no handler was defined for the block
2010-08-03 09:24:25 +00:00
Igor Sysoev
6d9d07b16a
fix directive type
2010-08-02 12:47:52 +00:00
Igor Sysoev
47f5f947bc
add warnings for proxy_no_cache and fastcgi_no_cache
2010-07-19 09:55:43 +00:00
Igor Sysoev
f7d659aa52
proxy_cache_pass, fastcgi_cache_bypass, uwsgi_cache_bypass, scgi_cache_bypass
2010-07-19 09:36:04 +00:00
Igor Sysoev
f3870c66df
use ngx_http_test_predicates(), ngx_http_set_predicate_slot()
...
delete ngx_http_cache(), ngx_http_no_cache_set_slot()
2010-07-14 11:15:45 +00:00
Igor Sysoev
0cb0c67e3a
do not use a cache headers set to hide
2010-07-02 10:05:40 +00:00
Igor Sysoev
7e14b50c28
use shared ngx_http_upstream_ignore_headers_masks[]
2010-07-02 09:25:38 +00:00
Igor Sysoev
2515f8efe9
fix r3628
2010-06-15 15:27:06 +00:00
Igor Sysoev
1cc1b311af
make code more obviuos
2010-06-15 15:21:37 +00:00
Igor Sysoev
54b35b009a
use ngx_http_parse_status_line()
2010-06-15 15:15:06 +00:00
Igor Sysoev
da7b5e15de
allow spaces in URI
2010-06-15 09:31:19 +00:00
Igor Sysoev
27b54fda94
delete useless code
2010-06-07 14:37:56 +00:00
Igor Sysoev
82e1933529
fix rewritten Refresh header length
2010-06-07 14:33:50 +00:00
Igor Sysoev
17483d5bfb
use local headers_names array instead of stored in configuration
...
and allocate its elements from temporary pool
2010-06-03 14:50:59 +00:00
Igor Sysoev
9b2763a245
proxy_no_cache and fastcgi_no_cache
2010-05-24 11:01:05 +00:00
Igor Sysoev
f5f4126574
delete warnings of proxy_upstream_max_fails, proxy_upstream_fail_timeout,
...
fastcgi_upstream_max_fails, fastcgi_upstream_fail_timeout,
memcached_upstream_max_fails, and memcached_upstream_fail_timeout
directives obsolete since 0.5.0 version
2010-05-20 11:46:01 +00:00
Igor Sysoev
05b1a8f1e3
ngx_str_set() and ngx_str_null()
2010-05-14 09:56:37 +00:00
Igor Sysoev
aed1ac1e68
reset a parsing state to parse correctly an upstream response,
...
if 400 or 414 response has been redirected to upstream
2010-03-25 13:27:52 +00:00
Igor Sysoev
7fa1c07896
"proxy_redirect default" may not be used if a proxy_pass uses variables
2010-03-10 14:41:49 +00:00
Igor Sysoev
931d88c7c1
fix proxy_redirect name in error message
2010-03-10 14:37:18 +00:00
Igor Sysoev
bd375b9566
fix typo
2009-12-23 14:22:17 +00:00
Igor Sysoev
c7c0d610cf
fix the "If-None-Match" header name
2009-12-22 16:41:34 +00:00
Igor Sysoev
f8b50b9c96
log proxied HTTP/0.9 responses status as "009"
2009-11-29 20:49:29 +00:00
Igor Sysoev
6c71b88924
allow "proxy_pass http://$backend " without URI part
2009-11-15 11:36:12 +00:00
Igor Sysoev
72e928755b
proxy_bind, fastcgi_bind, and memcached_bind
2009-11-02 15:24:02 +00:00
Igor Sysoev
15b7420aa6
ngx_http_upstream_create() to cleanup the previous upstream after
...
internal redirect
2009-07-27 13:25:29 +00:00
Igor Sysoev
5639272d47
do auto redirect for proxy_pass/fastcgi_pass with variables
2009-07-20 11:44:38 +00:00
Igor Sysoev
0775182312
fix building --without-http-cache, broken in r2930
2009-06-15 14:25:08 +00:00
Igor Sysoev
83c93ba109
inherit proxy_set_header, proxy_hide_header, and fastcgi_hide_header
...
only if cache settings are similar
2009-06-08 12:33:11 +00:00
Igor Sysoev
55192e7470
proxy_cache_use_stale/fastcgi_cache_use_stale updating
2009-06-06 18:49:47 +00:00
Igor Sysoev
260c4321d7
return NULL instead of NGX_CONF_ERROR on a create conf failure
2009-06-02 16:09:44 +00:00
Igor Sysoev
98f692a91e
report about proxy/fastcgi_store and proxy/fastcgi_cache incompatibility
2009-05-28 13:41:44 +00:00
Igor Sysoev
da28ef8bff
style fix
2009-05-28 13:31:43 +00:00
Igor Sysoev
5ed3691b6e
proxy_cache_methods and fastcgi_cache_methods
2009-05-19 13:27:27 +00:00
Igor Sysoev
b01c9cc10e
proxy_ignore_headers and fastcgi_ignore_headers
2009-04-30 16:15:07 +00:00