Commit Graph

2085 Commits

Author SHA1 Message Date
Igor Sysoev
517a8fc588 delete unneeded condition 2009-03-26 14:00:28 +00:00
Igor Sysoev
7b7faed7d6 fix add_header Last-Modified "", broken in r2589 2009-03-26 13:34:37 +00:00
Igor Sysoev
2f1a2f3d19 fix logged long locked cache entry name and add count 2009-03-26 09:50:04 +00:00
Igor Sysoev
3afc10f507 fix segfault if ngx_read_file() will fail 2009-03-24 15:03:38 +00:00
Igor Sysoev
63f52af737 fastcgi cache 2009-03-24 12:49:29 +00:00
Igor Sysoev
3a20e4a477 unlink proxy_cache and proxy_cache_valid 2009-03-24 12:31:24 +00:00
Igor Sysoev
7e4d11bb44 do not clean cache if memory cache keys zone is cold 2009-03-24 12:25:43 +00:00
Igor Sysoev
0ded9db383 fix the previous commit 2009-03-23 16:40:11 +00:00
Igor Sysoev
64416aa321 axe old definition fields 2009-03-23 15:57:57 +00:00
Igor Sysoev
565e1e436a bump version 2009-03-23 15:56:46 +00:00
Igor Sysoev
52859f2f13 a prelimiary proxy cache support 2009-03-23 13:14:51 +00:00
Igor Sysoev
1af7090b50 style fix: remove tabs 2009-03-22 15:52:52 +00:00
Igor Sysoev
9bc41a4281 style fix: remove tabs 2009-03-22 15:50:07 +00:00
Igor Sysoev
17f0e66bd9 use complex value in error_page 2009-03-22 09:40:04 +00:00
Igor Sysoev
0c2fd4a5de use complex values in add_header, auth_basic_user_file,
sub_filter, and xslt_stylesheet parameters
2009-03-22 09:39:19 +00:00
Igor Sysoev
8508c10bb8 ngx_http_script_flush_complex_value()
ngx_http_complex_value()
ngx_http_compile_complex_value()
2009-03-22 09:36:51 +00:00
Igor Sysoev
c7ce3a99bc add full path debug log in try_files 2009-03-20 16:50:53 +00:00
Igor Sysoev
e018a9c6ef allow try_files in server context 2009-03-20 16:48:45 +00:00
Igor Sysoev
cd70a5225a fix directory test in try_files 2009-03-20 16:47:23 +00:00
Igor Sysoev
7b5edd8ffe always run regex in server_name to get captures 2009-03-19 16:07:40 +00:00
Igor Sysoev
fb3be73a38 test wildcard tail hash existance 2009-03-19 15:46:27 +00:00
Igor Sysoev
b03aa7fcc2 split args in a try_files fallback 2009-03-19 13:42:27 +00:00
Igor Sysoev
2c7cb55ac1 ngx_http_split_args() 2009-03-19 13:41:29 +00:00
Igor Sysoev
165b3c001c split ngx_http_script_compile() 2009-03-18 14:42:06 +00:00
Igor Sysoev
61818c47af bump version 2009-03-18 14:40:21 +00:00
Igor Sysoev
3658a5bdc6 fix $server_addr for wildcard listen, the has been introduced in r2513 2009-03-18 12:23:57 +00:00
Igor Sysoev
f76a6c2244 reserve space for r->uri, the bug has been introduced in r2566 2009-03-18 12:21:19 +00:00
Igor Sysoev
f2a8affd7e delete unneeded variable 2009-03-16 11:08:08 +00:00
Igor Sysoev
8f13bccab4 bump version 2009-03-16 11:07:29 +00:00
Igor Sysoev
85e989e209 auth_basic_user_file supports variables 2009-03-16 07:13:22 +00:00
Igor Sysoev
c7e87af678 fix case when regex locaiton runs the second time via internal redirect 2009-03-14 19:24:17 +00:00
Igor Sysoev
bb7d615b3c fix reserved mapped uri length if alias has captures 2009-03-14 19:20:34 +00:00
Igor Sysoev
51ed97f79f remove unneeded increment 2009-03-14 17:10:25 +00:00
Igor Sysoev
da0a5318f1 compatibility with Tru64 UNIX: fcntl(F_SETLK, F_WRLCK) returns EINVAL if busy 2009-03-13 14:53:30 +00:00
Igor Sysoev
6d94b51f0b ipv6only 2009-03-13 14:20:34 +00:00
Igor Sysoev
648b0dcf28 fix building without PCRE, introduced in r2553 2009-03-12 11:42:34 +00:00
Igor Sysoev
0bd7b00eb7 ignore EINVAL from setsockopt() on Solaris 2009-03-12 07:16:15 +00:00
Igor Sysoev
d9307664db bump version 2009-03-12 07:12:25 +00:00
Igor Sysoev
000609ae76 fix segfaults introduced in r2549 and r2550 2009-03-11 13:04:02 +00:00
Igor Sysoev
da404fcfe5 bump version 2009-03-11 12:57:26 +00:00
Igor Sysoev
dc34dee2f2 fix segfaults introduced in r2550 2009-03-09 08:50:34 +00:00
Igor Sysoev
b91fa66fc8 style fix: remove tabs 2009-03-06 16:48:36 +00:00
Igor Sysoev
78c95de9da XFS on Linux does not set dirent.d_type,
therefore fallback to stat() if dirent.d_type is not set,
this fixes slash after directory name in ngx_http_autoindex_module;
the issue has been introduced in r2235
2009-03-06 13:01:21 +00:00
Igor Sysoev
7ac9f3605c captures support in server_name 2009-03-06 12:50:20 +00:00
Igor Sysoev
925baa0f95 captures support in location and alias 2009-03-06 12:49:22 +00:00
Igor Sysoev
1d05de49a3 now regex captures are per-request entities 2009-03-06 12:15:07 +00:00
Igor Sysoev
4b97b33336 pclcf->regex_locations are used with PCRE only 2009-03-05 08:24:17 +00:00
Igor Sysoev
72cdf92a91 bump version 2009-03-05 08:22:45 +00:00
Igor Sysoev
05ee60aed9 fix postponed zlib memory allocation, introduced in r2411
*) introduce postpone_gzipping directive
*) disable postponed gzipping by default

The r2411 commit caused hangings up on large SSIed responses
as SSI cleared buf->recycled bit on copy of recycled buf parts
2009-03-01 19:24:11 +00:00
Igor Sysoev
42c67dd5fb fix case when the first try is shorter then URI 2009-03-01 19:10:36 +00:00
Igor Sysoev
288e503e92 lower ECONNRESET level 2009-02-25 14:27:34 +00:00
Igor Sysoev
3e7e9d72e5 fix segfault introduced in r2486 in $sent_http_location processing 2009-02-24 22:02:08 +00:00
Igor Sysoev
d7b3b48f0e fix the previous commit 2009-02-24 14:25:24 +00:00
Igor Sysoev
36860101ec prepare ngx_ptocidr() for IPv6 2009-02-24 14:01:40 +00:00
Igor Sysoev
1f4220ee86 small optimization: " == NGX_ERROR" > " != NGX_OK" 2009-02-24 10:42:23 +00:00
Igor Sysoev
9b4a1d0094 use variable for often used field 2009-02-24 08:32:02 +00:00
Igor Sysoev
fed1ca0dc7 move r->virtual_names to ngx_http_core_srv_conf_t 2009-02-24 07:56:47 +00:00
Igor Sysoev
1966aedd6d axe r->port_text 2009-02-24 07:29:55 +00:00
Igor Sysoev
50273503aa remove seldom used variable 2009-02-24 07:21:35 +00:00
Igor Sysoev
2739121518 fix r2530 2009-02-24 07:12:39 +00:00
Igor Sysoev
4da223c8b5 axe unneeded port field 2009-02-23 21:30:31 +00:00
Igor Sysoev
80a4f29c8a axe r->port 2009-02-23 21:19:35 +00:00
Igor Sysoev
2d95c82f91 axe r->in_addr 2009-02-23 21:05:10 +00:00
Igor Sysoev
b5a17c727c bump version 2009-02-23 21:02:18 +00:00
Igor Sysoev
5336bd878b name/password were ignored after odd empty lines 2009-02-23 15:31:18 +00:00
Igor Sysoev
20018efe0f add auth basic failure logging 2009-02-23 15:15:42 +00:00
Igor Sysoev
49e140ed6c fix message 2009-02-23 09:42:35 +00:00
Igor Sysoev
8e1aa8ee9c fix NGX_SOCKADDRLEN, introduced in r2513 2009-02-21 15:13:13 +00:00
Igor Sysoev
55a7aad835 bump version 2009-02-21 14:55:58 +00:00
Igor Sysoev
2bc44ea01a fix upstream port, introduced in r2513 2009-02-21 14:34:32 +00:00
Igor Sysoev
e10385efe5 fix implicit listen, introduced in r2513 2009-02-21 10:23:30 +00:00
Igor Sysoev
5e988a4ec6 bump version 2009-02-21 09:44:57 +00:00
Igor Sysoev
a35eaccdec a prelimiary IPv6 support, HTTP listen 2009-02-21 07:02:02 +00:00
Igor Sysoev
a883361c47 split ports, addresses, and server names preparation and optimization 2009-02-18 16:17:12 +00:00
Igor Sysoev
34abdb1683 add debug logging 2009-02-18 09:24:14 +00:00
Igor Sysoev
7b9d3ce703 the $ancient_browser variables did not treat as an ancient browser
listed in modern_browser, but has lower version
2009-02-18 09:23:47 +00:00
Igor Sysoev
8a3729da14 set MIME-type length,
otherwise ngx_http_test_content_type() did not find "image/gif"
2009-02-17 08:37:36 +00:00
Igor Sysoev
643607bb13 bump version 2009-02-16 14:55:10 +00:00
Igor Sysoev
be63760fc5 load SSL engine before certificates,
otherwise RSA keys will use built-in RSA methods
2009-02-16 13:37:58 +00:00
Igor Sysoev
b17bf52a27 set content-type for try_files' choice 2009-02-14 17:26:26 +00:00
Igor Sysoev
134d1a67c5 fix r2169 for .def.com and .abc.def.com case 2009-02-11 12:33:13 +00:00
Igor Sysoev
540ce1957f bump version 2009-02-11 10:23:06 +00:00
Igor Sysoev
9786016076 fix /?new=arg?old=arg redirect case 2009-02-10 16:03:42 +00:00
Igor Sysoev
c43beec76f send HELO/EHLO after XCLIENT
patch by Maxim Dounin
2009-02-10 15:19:45 +00:00
Igor Sysoev
2c33648e52 if_modified_since off 2009-02-10 15:05:05 +00:00
Igor Sysoev
09f6cd5fa9 compatibility with Microsoft's
AUTH LOGIN [base64 encoded user name ]
patch by Maxim Dounin
2009-02-09 12:03:55 +00:00
Igor Sysoev
9f751a8324 AIX has no WCOREDUMP() 2009-02-05 16:01:50 +00:00
Igor Sysoev
f3d540a022 bump version 2009-02-05 15:47:12 +00:00
Igor Sysoev
9a5f4c74cf fix building by msvc, introduced in r2487 2009-02-02 10:17:06 +00:00
Igor Sysoev
32856e1bc8 avoid a double redirect response if
*) a request is going in a keep alive state,
*) the request body should be discarded,
*) epoll/rtsig reports about the response header has been sent,
*) and write event handler calls core phase handler
2009-01-31 20:44:30 +00:00
Igor Sysoev
bd5c23ee0a avoid deep nested calls, flatten call tree 2009-01-31 20:34:26 +00:00
Igor Sysoev
8ef386e1af fix return code, this fixes segfault when two or more
simultaneous connections are resolving the same address
2009-01-31 20:33:01 +00:00
Igor Sysoev
2c01fd32f2 use length of uncompressed name 2009-01-30 11:56:45 +00:00
Igor Sysoev
867d63bc1a fix $sent_http_location for local redirects 2009-01-30 05:26:27 +00:00
Igor Sysoev
9258872c2a store name pointer in variable allocated on stack
as resolver ctx may be already deallocated at this point
2009-01-29 14:35:23 +00:00
Igor Sysoev
fa748fe120 free addrs only it has been allocated before: non single address 2009-01-29 14:32:58 +00:00
Igor Sysoev
8629b9b27e fix reverse resolving cache: it stored zero length names
*) free name only if it has been already allocated
*) store name length
2009-01-29 14:29:49 +00:00
Igor Sysoev
67392e8054 fix types and add comment 2009-01-27 16:22:02 +00:00
Igor Sysoev
e46f19f7c4 test allocated space as in try_files 2009-01-27 16:20:29 +00:00
Igor Sysoev
6c5c793403 bump version 2009-01-26 17:01:27 +00:00
Igor Sysoev
dd6a98f89c style fix: remove tabs 2009-01-26 14:35:10 +00:00
Igor Sysoev
2da48d32c1 fix segfault if $fastcgi_script_name or $fastcgi_path_info were used before
fastcgi handler, the bug has been introduced in r2444
2009-01-26 14:33:59 +00:00
Igor Sysoev
9aa30bc51e revert the previous commit and r2447 change in src/core/ngx_cycle.c 2009-01-26 14:31:49 +00:00
Igor Sysoev
71f729c78c default error_log has zero level, the bug has been introduced in r2447 2009-01-26 14:11:09 +00:00
Igor Sysoev
4b2844b8a0 fix slab page or more sized allocations if nginx was build without debug 2009-01-25 10:39:59 +00:00
Igor Sysoev
7a86f07057 fix fastcgi_store 2009-01-21 20:54:40 +00:00
Igor Sysoev
7dcbfe67ef use GetFileAttributesEx() instead of GetFileAttributes() 2009-01-21 15:56:29 +00:00
Igor Sysoev
5aa6d223a6 fix win32 ngx_is_dir(), etc 2009-01-21 15:53:09 +00:00
Igor Sysoev
467f437e27 test ngx_file_info() result, the bug has been introduced in r2070 2009-01-21 15:50:52 +00:00
Igor Sysoev
1cf4988be6 fix r1981 on win32 2009-01-21 14:17:57 +00:00
Igor Sysoev
319dc27e8a allow directories in try_files 2009-01-21 12:11:22 +00:00
Igor Sysoev
cd55a93cce fix segfault when geo range replaces starting part of another range 2009-01-19 16:42:14 +00:00
Igor Sysoev
f39bca4281 bump version 2009-01-19 16:37:22 +00:00
Igor Sysoev
977fd90d2b try_files should work with files only 2009-01-19 11:24:25 +00:00
Igor Sysoev
c1a2b978de allow insertion range if its start or end is the same as existent one 2009-01-16 16:29:23 +00:00
Igor Sysoev
53554ae54d fix single address range 2009-01-16 16:09:58 +00:00
Igor Sysoev
6ff8cda061 fix range deletion 2009-01-16 16:02:30 +00:00
Igor Sysoev
95cff3e9d0 repeat r2448 for range deletion 2009-01-16 15:58:27 +00:00
Igor Sysoev
287c22f788 log both overrlaped ranges 2009-01-16 15:47:05 +00:00
Igor Sysoev
f8fdbcaaa2 fix range start for ranges those spread in two or more slots 2009-01-16 15:44:39 +00:00
Igor Sysoev
91cf00da17 set the error level as default http error_log level 2009-01-16 14:00:05 +00:00
Igor Sysoev
6019a7621b proxy/fastcgi_store did not delete incomplete files 2009-01-16 13:57:00 +00:00
Igor Sysoev
f1bde24720 set r->root_tested for non-error_page response only 2009-01-16 13:53:08 +00:00
Igor Sysoev
1b8267cea2 fastcgi_split_path_info 2009-01-16 13:21:20 +00:00
Igor Sysoev
73f9bb4d01 *) fix duplicate geo ranges
*) split existent range and insert a new one
2009-01-16 13:17:12 +00:00
Igor Sysoev
f7204173f9 in miss case memcached module returned END instead of default 404 page body
the bug has been introduced in r2269
2009-01-15 13:10:45 +00:00
Igor Sysoev
77a797436d update r2439: make clear name 2009-01-13 06:47:29 +00:00
Igor Sysoev
103fe34052 fix r2312 2009-01-12 15:40:26 +00:00
Igor Sysoev
19961d20ce style fix 2009-01-12 15:36:30 +00:00
Igor Sysoev
303df47fcb send "100 Continue" just before reading request body 2008-12-26 13:43:42 +00:00
Igor Sysoev
2aae701ab7 do not send "100 Continue" for subrequests 2008-12-26 06:21:23 +00:00
Igor Sysoev
97bf6c760a set send() slot for POSIX systems 2008-12-25 20:07:12 +00:00
Igor Sysoev
07fc16cf31 bump version 2008-12-25 20:06:26 +00:00
Igor Sysoev
9b753d2eea fix segfault, introduced in r2423 2008-12-24 16:18:35 +00:00
Igor Sysoev
503c075122 bump version 2008-12-24 15:54:21 +00:00
Igor Sysoev
a26a70e80b fix r2378, file inclusion should be waited 2008-12-24 12:39:41 +00:00
Igor Sysoev
9eb86c43c7 do not try to align to a page size, allocate just 8K,
this is fixes allocation on Cygwin, it reports 64K page size
2008-12-24 12:05:55 +00:00
Igor Sysoev
195860b74d flush variable values in try_files 2008-12-24 07:14:01 +00:00
Igor Sysoev
d8e54adb6d update r2422 2008-12-24 06:11:04 +00:00
Igor Sysoev
302cedceb0 variable support for unix sockets in fastcgi_pass and proxy_pass 2008-12-23 19:35:12 +00:00
Igor Sysoev
8eb5ed2e77 fix r2378, do not activate subrequest if there are already
postponed subrequests or data
2008-12-23 17:25:46 +00:00
Igor Sysoev
ce55952790 fix the previous commit 2008-12-23 08:10:17 +00:00
Igor Sysoev
40e2269bfb send "100 Continue" for HTTP/1.1 only 2008-12-22 15:44:13 +00:00
Igor Sysoev
2a7ce7b878 bump version 2008-12-22 15:40:12 +00:00
Igor Sysoev
84d17bba65 ngx_http_arg() 2008-12-22 12:02:05 +00:00
Igor Sysoev
ed9b6d8962 remove never used zero copy stuff 2008-12-17 20:47:18 +00:00
Igor Sysoev
cf6c582b9a fix segfault 2008-12-17 16:07:58 +00:00
Igor Sysoev
52b815e452 set default gzip_buffers to 32 4k or 16 8k 2008-12-16 16:15:52 +00:00
Igor Sysoev
7505928d9f bump version 2008-12-16 16:12:31 +00:00
Igor Sysoev
9aa7e66911 postpone zlib memory allocation 2008-12-16 16:09:39 +00:00
Igor Sysoev
d8e3d0b5a5 try_files 2008-12-15 10:56:48 +00:00
Igor Sysoev
2194e75bb3 do not add header if add_header "" 2008-12-15 10:50:57 +00:00
Igor Sysoev
4f395dec87 remove seldom used variable 2008-12-12 16:40:12 +00:00
Igor Sysoev
3dde93ba6c fix segfault if no named location are defined, but are used 2008-12-11 17:32:52 +00:00
Igor Sysoev
ac662fbe1b fix zero length static response, the bug was introduced in r2378 2008-12-11 15:57:14 +00:00
Igor Sysoev
371766c0a5 $upstream_response_length 2008-12-11 15:30:52 +00:00
Igor Sysoev
2d83ed000f style fix: remove tabs 2008-12-11 10:22:25 +00:00
Igor Sysoev
22f6d86cba allow "~", "~*", "^~", and "=" before location name without space 2008-12-11 10:21:08 +00:00
Igor Sysoev
9a1d46684c $geo variable support 2008-12-11 09:46:45 +00:00
Igor Sysoev
976603a646 remove before nginx-0.1.25 compatibility code 2008-12-11 07:48:48 +00:00
Igor Sysoev
0e17953679 fix r2394 2008-12-11 06:38:14 +00:00
Igor Sysoev
0c54fef3e0 test port in fastcgi_pass variable 2008-12-10 16:25:14 +00:00
Igor Sysoev
1e2d6aa0e8 clear fastcgi ctx for internal redirection via named location 2008-12-10 16:16:10 +00:00
Igor Sysoev
524f54f56d use ngx_ext_rename_file() for single file MOVE 2008-12-10 14:53:45 +00:00
Igor Sysoev
45656b4051 fix debug logging 2008-12-10 14:48:04 +00:00
Igor Sysoev
ebc050dbba change variable name 2008-12-10 14:46:34 +00:00
Igor Sysoev
73c3121e6a delete surplus upstream.schema field 2008-12-10 14:44:48 +00:00
Igor Sysoev
d56088f4da fastcgi_pass variables support 2008-12-10 14:22:07 +00:00
Igor Sysoev
a70d3962bb compact win32 errno logging 2008-12-09 17:41:17 +00:00
Igor Sysoev
c9aae14a7e use "!= NGX_OK" instead of "== NGX_ERROR" 2008-12-09 17:27:48 +00:00
Igor Sysoev
04f7dbb9cd remove stale pragma 2008-12-09 17:26:42 +00:00
Igor Sysoev
b9409a8e25 use already available r and u instead of ev 2008-12-09 17:25:03 +00:00
Igor Sysoev
f8ffc2eb59 delete unneeded call 2008-12-09 16:49:52 +00:00
Igor Sysoev
d30d8a3931 bump version 2008-12-09 11:13:12 +00:00
Igor Sysoev
3e15a9712a fix r2378, run posted requests after upstream event handling 2008-12-08 18:28:06 +00:00
Igor Sysoev
17b5953e71 bump version 2008-12-08 17:59:43 +00:00
Igor Sysoev
851cd73f1d *) refactor subrequest handling, now they run as separate posted requests
*) now $upstream_addr, $upstream_status, $upstream_response_time can be used
   with log_subrequest
2008-12-08 14:23:20 +00:00
Igor Sysoev
ba206e147c *) add zone name while logging 503 error reason
*) log allocation error as 503 error reason
2008-12-08 14:18:06 +00:00
Igor Sysoev
54fd0bb613 update comment 2008-12-08 14:15:19 +00:00
Igor Sysoev
61591d111f rename "lz" to "lr" in variable names 2008-12-08 14:13:36 +00:00
Igor Sysoev
38a2933b67 log 503 error reason 2008-12-08 14:12:29 +00:00
Igor Sysoev
4bc0dcf701 test duplicate limit_conn 2008-12-08 14:08:44 +00:00
Igor Sysoev
51fad316cd skip protected symlinks in autoindex 2008-12-08 14:05:21 +00:00
Igor Sysoev
5bf2087462 allow POST without Content-Length 2008-12-08 14:04:31 +00:00
Igor Sysoev
0e32306bab fix comment 2008-12-02 16:50:56 +00:00
Igor Sysoev
84b7651ac2 fix "delete CIDR" 2008-12-02 15:02:36 +00:00
Igor Sysoev
14ecd8ab01 bump version 2008-12-02 14:59:14 +00:00
Igor Sysoev
863325fe98 if_modified_since 2008-12-01 14:22:51 +00:00
Igor Sysoev
15fbaa6612 read and process upstream header in cycle,
this fixes the case when local FastCGI server sends many warnings in stderr
2008-12-01 14:08:00 +00:00
Igor Sysoev
c6016b25cf $cookie_... variable did not for SSI and perl 2008-12-01 13:59:35 +00:00
Igor Sysoev
69b5a6ddfb create empty radix tree for "geo $geo { }" case 2008-11-28 17:22:35 +00:00
Igor Sysoev
5a214b96e2 bump version 2008-11-28 17:22:06 +00:00
Igor Sysoev
1c6c63332c *) descrease geo configuration memory usage
*) geo delete
*) geo ranges
2008-11-25 15:59:06 +00:00
Igor Sysoev
8ab0867644 allocate cf->conf_file and cf->conf_file->buffer on stack 2008-11-25 15:55:10 +00:00
Igor Sysoev
2a523f1c71 fix segfault on close error 2008-11-25 14:45:44 +00:00
Igor Sysoev
65eba4b692 ngx_reset_pool() 2008-11-25 14:25:20 +00:00
Igor Sysoev
ecbb69ad7f *) increase ngx_conf_log_error() buffer
*) always log an error code
2008-11-25 13:00:53 +00:00
Igor Sysoev
33930d82ce ngx_strerror_r() style and size == 0 bug fix 2008-11-25 11:26:32 +00:00
Igor Sysoev
de2f8c4ca5 use value rbtree instead of array in geo configuration 2008-11-22 20:42:51 +00:00
Igor Sysoev
9857082f09 variable value rbtree support 2008-11-22 20:42:01 +00:00