Commit graph

2777 commits

Author SHA1 Message Date
Igor Sysoev
19f3290ab9 bump version 2010-09-06 11:07:07 +00:00
Igor Sysoev
d2409610ec new ngx_http_secure_link_module with secure_link, secure_link_md5, and
secure_link_expires
2010-09-02 14:37:16 +00:00
Igor Sysoev
f819e3b7ed fix race condition if during reconfiguration two cache managers try
to delete old inactive entries: one of them removes a entry just locked by
other manager from the queue and the rbtree as long inactive entry,
causes the latter manager to segfault leaving cache mutex locked,
the bug has been introduced in r3727
2010-09-02 14:31:47 +00:00
Igor Sysoev
0084867ae8 gzip_disable msie6 ignored other patterns 2010-09-02 14:02:57 +00:00
Igor Sysoev
198d1ed567 gzip_disable compiled always the first pattern only 2010-09-02 14:01:58 +00:00
Igor Sysoev
e017f64590 gzip_disable msie6 did not inherited if nginx was built without PCRE 2010-09-02 13:54:28 +00:00
Igor Sysoev
b9ff0e4dca add "Global\" prefix for signal events 2010-09-02 13:49:05 +00:00
Igor Sysoev
7c48ce89c5 the -q switch 2010-09-02 13:43:02 +00:00
Igor Sysoev
e23463da18 if a location is specified by regex, then always compile an "alias",
even into one static string script: this elimates testing this
too specific case inside ngx_http_map_uri_to_path()
2010-08-26 12:33:08 +00:00
Igor Sysoev
f20a3d0603 bump version 2010-08-25 12:30:08 +00:00
Igor Sysoev
6a921ab39d image_filter_jpeg_quality supports variables 2010-08-06 15:55:05 +00:00
Igor Sysoev
734b2c0cf1 zero fcn->updating after node allocation 2010-08-04 13:34:23 +00:00
Igor Sysoev
e597feff7d error status codes could be cached for next request only,
the bug has been introduced in r3712
2010-08-04 12:55:27 +00:00
Igor Sysoev
a589d16bf0 we can free GeoIPRecord just after GeoIP_region_name_by_code(),
because it returns a statically allocated string
2010-08-03 18:38:08 +00:00
Igor Sysoev
63eedfba66 fix segfault, the bug has been introduced in r3738 2010-08-03 18:27:56 +00:00
Igor Sysoev
eb3fc51370 bump version 2010-08-03 18:24:18 +00:00
Igor Sysoev
b143dd16b6 $geoip_region_name 2010-08-03 15:01:34 +00:00
Igor Sysoev
3646cca88b $geoip_dma_code and $geoip_area_code 2010-08-03 14:19:49 +00:00
Igor Sysoev
c0a7183186 fix fastcgi_split_path_info, if URI was not fully captured 2010-08-03 13:35:48 +00:00
Igor Sysoev
515376efd2 *) make code consistent to fastcgi, etc
*) remove STUB comment
2010-08-03 12:59:14 +00:00
Igor Sysoev
eb53669ca0 use NULL instead of 0 2010-08-03 12:53:06 +00:00
Igor Sysoev
d809597b13 delete surplus assignment 2010-08-03 09:42:53 +00:00
Igor Sysoev
f94de11f91 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
7653d2eeff ngx_http_conf_get_module_srv_conf() and ngx_http_conf_get_module_loc_conf()
may be used at merge phase
2010-08-02 15:28:04 +00:00
Igor Sysoev
0bbbba3b7a fix directive type 2010-08-02 12:47:52 +00:00
Igor Sysoev
949db916b2 change logic slightly 2010-08-02 12:34:15 +00:00
Igor Sysoev
ec4192e27c change order 2010-08-02 12:32:33 +00:00
Igor Sysoev
dd3154c088 *) delete cache key node after a cache file removal
*) move fileless cache key node removal in ngx_http_file_cache_delete()
2010-08-02 12:27:58 +00:00
Igor Sysoev
67136f60fd escape ";" in arguments 2010-07-30 13:25:19 +00:00
Igor Sysoev
b57124ccad count cache key node usage for cached error statuses 2010-07-30 12:41:55 +00:00
Igor Sysoev
a57b388f4b do not free unused cache node if cache min_uses > 1,
the bug has been introduced in r3695, r3708, r3711
2010-07-30 10:20:08 +00:00
Igor Sysoev
a85cd6842d return 415 on too big image in image filter 2010-07-29 15:40:03 +00:00
Igor Sysoev
a032e72d9e change default server_name_in_redirect value to off,
since default server_name is empty
2010-07-29 10:01:31 +00:00
Igor Sysoev
49e8b9cadd use an empty name as default server_name instread of hostname 2010-07-29 10:00:04 +00:00
Igor Sysoev
53b9fea5c9 allow server_name "" as the first name 2010-07-29 09:55:54 +00:00
Igor Sysoev
5dc8096d12 decrease SSL handshake error level to info 2010-07-29 09:30:15 +00:00
Igor Sysoev
244db2bb0a bump version 2010-07-29 08:10:22 +00:00
Igor Sysoev
5b762f5847 move debug logging inside ngx_http_file_cache_free() 2010-07-28 15:56:56 +00:00
Igor Sysoev
86fd5fba67 fix $request_time for subrequests 2010-07-28 15:51:50 +00:00
Igor Sysoev
808be9559e several changes in cache cleanup handling:
*) now ngx_http_file_cache_cleanup() uses ngx_http_file_cache_free()
*) ngx_http_file_cache_free() interface has been changed to accept r->cache
   ngx_http_file_cache_cleanup() must use r->cache, but not r, because
   there can be several r->cache's during request processing, r->cache may
   be NULL at request finalising, etc.
*) test if updating request does not complete correctly
2010-07-28 15:49:34 +00:00
Igor Sysoev
74b9ebd872 fix r3708 and r3695: valid_sec is set only for caching error status codes 2010-07-27 19:11:17 +00:00
Igor Sysoev
9b63f57c7c fix r3707: cache node should be freed be a response is not cached 2010-07-27 15:26:33 +00:00
Igor Sysoev
55f4158eb2 fix typo 2010-07-27 13:04:13 +00:00
Igor Sysoev
a5fdf95e28 fix r3695: this commit
*) freed valid keys zone node
*) and did not decrease cache size, so cache manager process ete CPU time,
   if cache checking max_size was enabled
2010-07-27 11:22:59 +00:00
Igor Sysoev
d492527779 an intercepted error code was not cached 2010-07-19 15:31:46 +00:00
Igor Sysoev
53bd67c0ec style fix 2010-07-19 15:29:16 +00:00
Igor Sysoev
c6827a6834 initialize r->cache->file.fd with NGX_INVALID_FILE 2010-07-19 15:28:22 +00:00
Igor Sysoev
cdade23c45 bump version 2010-07-19 15:27:06 +00:00
Igor Sysoev
2581a4ccc1 add warnings for proxy_no_cache and fastcgi_no_cache 2010-07-19 09:55:43 +00:00
Igor Sysoev
0c224f68cb proxy_cache_pass, fastcgi_cache_bypass, uwsgi_cache_bypass, scgi_cache_bypass 2010-07-19 09:36:04 +00:00
Igor Sysoev
02a017cbcb rename ngx_http_file_cache_create() to ngx_http_file_cache_new() 2010-07-16 10:01:49 +00:00
Igor Sysoev
06189be984 ngx_http_file_cache_create() 2010-07-15 14:01:02 +00:00
Igor Sysoev
3f9edd109f ngx_http_file_cache_name() 2010-07-15 13:46:32 +00:00
Igor Sysoev
f1a6cfa6bb style fix 2010-07-15 13:10:05 +00:00
Igor Sysoev
6a857ea7ff delete empty cache zone node if we could not get response to cache 2010-07-15 13:08:51 +00:00
Igor Sysoev
3d8690f9ec fix scgi_no_cache and uwsgi_no_cache initialization 2010-07-14 11:29:19 +00:00
Igor Sysoev
c424307308 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
99c55deb3e ngx_http_test_predicates(), ngx_http_set_predicate_slot() 2010-07-14 11:13:59 +00:00
Igor Sysoev
4d45e2c8cf bump version 2010-07-14 11:09:56 +00:00
Igor Sysoev
f19e0aab2a allow setfib=0 2010-07-13 10:17:09 +00:00
Igor Sysoev
3e8bd94065 use xmlSAXHandler._private field to store xslt filter context 2010-07-12 12:52:01 +00:00
Igor Sysoev
4b5641e11e fix building by msvc7 2010-07-08 16:17:11 +00:00
Igor Sysoev
2c58299c1f fix typo 2010-07-08 14:02:09 +00:00
Igor Sysoev
bf8cb5a0ed style fix 2010-07-08 13:49:21 +00:00
Igor Sysoev
5c381b7c0f update r->buffered after processing SSI command,
the bug has been probably introduced in r2378
2010-07-07 10:17:19 +00:00
Igor Sysoev
2b77360fcf bump version 2010-07-07 10:09:44 +00:00
Igor Sysoev
cec9b84e05 listen setfib=X 2010-07-05 13:49:16 +00:00
Igor Sysoev
7d9ed15393 fix case of partially matched patterns on buffer border in sub_filter 2010-07-05 13:45:10 +00:00
Igor Sysoev
d07e981e89 fix recognition of SSLv2 Client Hello Packet large than 255 bytes 2010-07-05 13:35:20 +00:00
Igor Sysoev
df89ec501a try to use C99 variadic macros first:
AIX 5.3's XL C has problems with GCC style variadic macros
2010-07-05 13:02:25 +00:00
Igor Sysoev
8f15f4dfcb fix building by owc12: GetLongPathName() is available since Win2K only 2010-07-05 12:47:35 +00:00
Igor Sysoev
1598fcb41f HP/UX uses EWOULDBLOCK instead of EAGAIN 2010-07-03 20:16:55 +00:00
Igor Sysoev
28573708e3 do not use a cache headers set to hide 2010-07-02 10:05:40 +00:00
Igor Sysoev
195938733b treat Set-Cookie as a header that forbids caching 2010-07-02 09:49:27 +00:00
Igor Sysoev
f88daee0f0 update the previous commit 2010-07-02 09:28:50 +00:00
Igor Sysoev
3ad024c19a use shared ngx_http_upstream_ignore_headers_masks[] 2010-07-02 09:25:38 +00:00
Igor Sysoev
749e620d74 bump version 2010-07-01 12:56:32 +00:00
Igor Sysoev
1122815ff7 remove r->zero_body unused since the previous commit 2010-06-30 14:42:15 +00:00
Igor Sysoev
8ad792ae98 Fix processing
error_page 502 504 /zero;
    location = /zero { return 204; }

The bug has been introduced in r3634.
The fix also allow to use:
    error_page 502 504 = /zero;
    location = /zero { return 200; }

This case still does not work:
    error_page 502 504 /zero;
    location = /zero { return 200; }
2010-06-30 14:39:28 +00:00
Igor Sysoev
2424416b03 change logic introduced in r3649:
*) now $uid_set is cacheable again
*) allow to see at any processing stage that uid cookie is remarked
2010-06-30 14:30:55 +00:00
Igor Sysoev
0097d487ab style fix: remove tabs 2010-06-30 14:28:54 +00:00
Igor Sysoev
e4fed15a90 set uid values for main request only 2010-06-30 13:15:20 +00:00
Igor Sysoev
1796c210b5 fix IPv6 listen socket handling while reconfiguring 2010-06-30 12:01:56 +00:00
Igor Sysoev
bd8b974fce fix ngx_write_file() buf 2010-06-30 10:33:02 +00:00
Igor Sysoev
67b65ce86b test binary geo range base size 2010-06-30 10:13:51 +00:00
Igor Sysoev
c04281e30c test the second binary geo range base existence 2010-06-30 10:12:46 +00:00
Igor Sysoev
f63ef664f5 test binary geo ranges base only for ranges 2010-06-30 10:05:56 +00:00
Igor Sysoev
e39a4d11e2 test binary gep range base mtime 2010-06-30 10:02:05 +00:00
Igor Sysoev
a0f059a4ee binary geo ranges base cache 2010-06-29 16:06:20 +00:00
Igor Sysoev
f00e3577dc ngx_create_file_mapping() 2010-06-29 15:18:50 +00:00
Igor Sysoev
d920c9a32a change duplicate default geo range processing 2010-06-29 13:36:16 +00:00
Igor Sysoev
cfdf464b50 fix building without IPv6 after the previous commit 2010-06-25 13:17:33 +00:00
Igor Sysoev
e89740a95e Now $uid_set may be used at any time, r2013 states the same is wrong.
Besides, now $uid_set is not cacheable and may have two values:
before and after header filter processing.
This allows to log case, when uid cookie is remarked.
2010-06-25 12:16:31 +00:00
Igor Sysoev
fbd33432dd make logic more clear 2010-06-25 12:06:37 +00:00
Igor Sysoev
e0963f0de2 delete stale comments 2010-06-25 12:05:12 +00:00
Igor Sysoev
09eb3358d2 eliminate a number of ranges: about 18,000 /16 networks are empty,
this change saves about 70K/140K on 32/64-bit platforms
2010-06-24 15:26:05 +00:00
Igor Sysoev
f3a714a6ba fix a bug when ngx_cpymem() returns a cast type:
p = (type *) ngx_cpymem(...)
2010-06-24 15:17:06 +00:00
Igor Sysoev
35881a0c52 break cycle early 2010-06-24 13:16:19 +00:00
Igor Sysoev
2d311b77d0 style fix 2010-06-23 16:34:54 +00:00
Igor Sysoev
0bde90b418 change ngx_http_variable_value_node_t to more generic ngx_str_node_t 2010-06-23 15:31:33 +00:00