Igor Sysoev
cd8b43cde7
rename core_srv_conf fields to more understandable default_server and server
2009-10-21 16:52:10 +00:00
Igor Sysoev
f2694cb925
*) move sockaddr to the listen options
...
*) rename ngx_http_listen_t to ngx_http_listen_opt_t
2009-10-21 16:47:44 +00:00
Igor Sysoev
2a634f5342
fix r3218:
...
Initially building lists of ports, addresses, and server names had been
placed at final configuration stage, because complete set of the "listen"s
and the "server_names" were required for this operation. r3218 broke it,
because the "listen"s go usually first in configuration, and
cscf->server_names is empty at this stage, therefore no virtual names
were configured.
Now server configurations are stored in array for each address:port
to configure virtual names. Also regex captures flag is moved from
server names to core server configuration.
2009-10-21 16:27:48 +00:00
Igor Sysoev
d2d0931ed5
refactor http listen code: remove duplicate options fields
2009-10-21 08:48:04 +00:00
Igor Sysoev
79d630ac11
refactor http listen code:
...
*) add listen's to the global cmcf->ports array instead of server's one
*) rename ngx_http_listen_conf_t to ngx_http_listen_opt_t
2009-10-21 08:19:46 +00:00
Igor Sysoev
e418e0661c
fix two previous commits: an early parallel body discarding completion
...
disables incomplete ngx_http_writer()
2009-10-20 11:48:28 +00:00
Igor Sysoev
9a1f0ac730
allow discarding body while a long response transfer
2009-10-19 16:13:38 +00:00
Igor Sysoev
801a35df3c
restore discard body handler after ngx_http_set_writer() set it to
...
ngx_http_test_reading(), the bug was introduced in r3050
2009-10-19 16:12:13 +00:00
Igor Sysoev
7060e670f4
fix ngx_http_finalize_request() code after a body has been discarded
2009-10-19 16:06:57 +00:00
Igor Sysoev
11e5d7f190
prevent handling discarded body as a pipelined request
2009-10-19 14:08:35 +00:00
Igor Sysoev
2495c4d50b
add lingering timeout if a response is short and a request body is being
...
discarded, the bug was introduced in r3050
2009-10-19 14:08:09 +00:00
Igor Sysoev
145dcc180a
fix typo
2009-10-19 12:33:09 +00:00
Igor Sysoev
550454192c
ngx_http_parse_time() should support full 32-bit time
2009-10-15 13:19:34 +00:00
Igor Sysoev
5143e39b4e
use ngx_uint_t instead of int,
...
strange to say this reduce function size by 16 bytes
2009-10-15 13:09:58 +00:00
Igor Sysoev
6a588f80c6
bump version
2009-10-15 13:01:42 +00:00
Igor Sysoev
73a9c44441
update r3201: ngx_http_random_index_module should behave consistently
...
in spite of the dirent.d_type presence
2009-10-14 12:39:41 +00:00
Igor Sysoev
e58700d3b0
*) reset cached dirent.d_type after stat()
...
this fixes slash after link to a directory in ngx_http_autoindex_module;
*) use cached dirent.d_type as hint on all systems
the issues has been introduced in r2235
2009-10-14 11:33:35 +00:00
Igor Sysoev
671236993a
test comma separator in "Cache-Control"
2009-10-08 14:22:00 +00:00
Igor Sysoev
e2afcc5d2f
hide cacheable Set-Cookie and P3P FastCGI response headers
2009-10-07 15:15:41 +00:00
Igor Sysoev
3bed0daced
use only strong ciphers by default
2009-10-07 14:46:13 +00:00
Igor Sysoev
136dd8d1e6
use real file cache length, this fixes cache size counting for responses
...
without "Content-Length" header and 304 responses.
2009-10-07 12:55:58 +00:00
Igor Sysoev
9e54633645
bump version
2009-10-07 12:48:05 +00:00
Igor Sysoev
4efbd6ab36
fix r3184
2009-10-06 16:08:15 +00:00
Igor Sysoev
cf9dd76b43
disable SSLv2 and low ciphers by default
2009-10-06 14:24:53 +00:00
Igor Sysoev
280d6955e3
bump version
2009-10-06 13:52:26 +00:00
Igor Sysoev
2fb73afece
limit_conn_log_level
2009-10-06 10:14:29 +00:00
Igor Sysoev
6624c62742
limit_req_log_level
2009-10-06 10:14:21 +00:00
Igor Sysoev
4ae43f965d
fix building by gcc45
2009-10-06 09:46:16 +00:00
Igor Sysoev
5d4b802370
make limit_req to conform to the leaky bucket algorithm
2009-10-06 09:37:18 +00:00
Igor Sysoev
a2951910d3
omit '\0' from "Location" header on MKCOL request
2009-10-06 09:32:21 +00:00
Igor Sysoev
703f15d8a2
clear r->lingering_close to disable preventively calling
...
ngx_http_set_lingering_close() while request cleanup
2009-10-02 11:32:56 +00:00
Igor Sysoev
2d24d749e4
clear r->keepalive to disable preventively calling
...
ngx_http_set_keepalive() while request cleanup
2009-10-02 11:30:47 +00:00
Igor Sysoev
48a3131d83
update r3167: do not set r->discard_body if the body has been just discarded
2009-10-02 09:46:04 +00:00
Igor Sysoev
3266171fd4
read_ahead
2009-09-30 13:21:52 +00:00
Igor Sysoev
689064b91a
log 499 instead 0, the bug was introduced in r3050
2009-09-30 12:05:08 +00:00
Igor Sysoev
13210a18f4
allow several perl_modules
2009-09-30 11:46:01 +00:00
Igor Sysoev
d9ef969e28
use ngx_conf_set_str_array_slot() for perl_require
2009-09-28 16:07:14 +00:00
Igor Sysoev
2c808cc191
optimize error handling
2009-09-28 15:57:28 +00:00
Igor Sysoev
0056d6b4aa
bump version
2009-09-28 15:56:28 +00:00
Igor Sysoev
65166cfa2f
fix request counter in resolver handling, the bug was introduced in r3050
2009-09-28 12:31:47 +00:00
Igor Sysoev
00e723da20
we do not need to increase request counter in this place,
...
the bug had appeared in r3115
2009-09-28 11:12:45 +00:00
Igor Sysoev
63bfeb9bd0
fix r3078: do not increase request counter if body has been just discarded
2009-09-26 13:24:15 +00:00
Igor Sysoev
812234e2f5
fix discarding body
2009-09-25 11:55:33 +00:00
Igor Sysoev
a552ab476e
check unsafe Destination
2009-09-25 09:30:06 +00:00
Igor Sysoev
7f6d71bbc8
low ENAMETOOLONG logging level
2009-09-25 09:13:08 +00:00
Igor Sysoev
cdaf442a2f
$ssl_session_id
2009-09-24 14:45:28 +00:00
Igor Sysoev
f63a48ce7e
update the previous commit: use ngx_strlow()
2009-09-24 13:23:25 +00:00
Igor Sysoev
6749e92938
$host is always in low case:
...
*) move low case convertation from ngx_http_find_virtual_server()
to ngx_http_validate_host()
*) add in ngx_http_validate_host() capability to copy host name in the pool
allocated memory
2009-09-24 13:15:50 +00:00
Igor Sysoev
3749443661
bump version
2009-09-23 15:27:17 +00:00
Igor Sysoev
70df46f5c5
fix typo in addition_types directive name
2009-09-22 09:06:15 +00:00
Igor Sysoev
7386cf58a7
fix request counter for post_action, the bug was introduced in r3050
2009-09-21 18:34:22 +00:00
Igor Sysoev
5b6b1fda1c
allow to log invalid $request in access_log always,
...
before it was logged only if error_log was set to info or debug level
2009-09-21 15:55:56 +00:00
Igor Sysoev
c828202087
*) issue warning instead of failure: this is too common case
...
*) use ngx_log_error(), since OpenSSL does not set an error on the failure
2009-09-18 09:10:16 +00:00
Igor Sysoev
d1e9567425
do not pass buf with empty cached response,
...
this fixes "zero size buf in output" alert
2009-09-15 15:12:03 +00:00
Igor Sysoev
04c2f085f4
nginx always sent "Vary: Accept-Encoding",
...
if both gzip_static and gzip_vary were on
2009-09-15 11:57:29 +00:00
Igor Sysoev
4428cfc12b
image_filter_transparency
2009-09-15 11:55:17 +00:00
Igor Sysoev
f1edf87d04
fix alpha-channel transparency in PNG
2009-09-15 09:47:12 +00:00
Igor Sysoev
6db93ab8ba
allow perl "sub{..."
2009-09-15 09:37:16 +00:00
Igor Sysoev
e6823b5199
bump version
2009-09-15 09:36:09 +00:00
Igor Sysoev
be9d165064
test space between "~" and regex in server_name and invalid_referers
2009-09-14 09:48:48 +00:00
Igor Sysoev
97aa4c86a1
handle "/../" case more reliably
2009-09-14 07:42:01 +00:00
Igor Sysoev
12a7d493d4
fix request counter for X-Accel-Redirect, the bug was introduced in r3050
2009-09-13 13:45:32 +00:00
Igor Sysoev
84b20ca18b
fix case when the output filter should add incoming buffers
...
while waiting on file AIO completion
2009-09-13 06:28:17 +00:00
Igor Sysoev
79b8049de4
fix transparency in GIF
2009-09-12 09:46:28 +00:00
Igor Sysoev
96e36ef252
If .domain.com, .sub.domain.com, and .domain-some.com were defined,
...
then .sub.domain.com was matched by .domain.com: wildcard names hash
was built incorrectly due to sorting order issue of "." vs "-".
They were sorted as
com.domain com.domain-some com.domain.sub
while they should be sorted as
com.domain com.domain.sub com.domain-some
for correct hash building
2009-09-12 09:28:37 +00:00
Igor Sysoev
e0f1d0afcc
style fix
2009-09-11 13:57:50 +00:00
Igor Sysoev
526f36aab8
fix request counter for rewrite or internal redirection cycle,
...
the bug was introduced in r3050
2009-09-10 16:34:09 +00:00
Igor Sysoev
3e751480b2
increase request counter before an upstream cleanup because the cleanup
...
decreases the counter via ngx_http_finalize_request(r, NGX_DONE),
the bug was introduced in r3050
2009-09-08 11:37:50 +00:00
Igor Sysoev
4d4b2a1b40
fix request counter handling in perl module for $r->internal_redirect()
...
and $r->has_request_body(), the bug was introduced in r3050
2009-09-08 11:33:32 +00:00
Igor Sysoev
9963b19f69
do not pass incoming buf chain twice if data are ready,
...
the bug was introduced in r3072
2009-09-07 12:10:07 +00:00
Igor Sysoev
d0afc39841
bump version
2009-09-07 12:08:58 +00:00
Igor Sysoev
28debb2191
fix the previous commit
2009-09-04 18:51:17 +00:00
Igor Sysoev
78fd825c1e
preload just a single byte to avoid testing file overrun
2009-09-04 16:59:23 +00:00
Igor Sysoev
8013a83067
clean cache updating state if a response has uncacheable code or
...
cache prohibitive headers
2009-09-04 09:57:38 +00:00
Igor Sysoev
7d71c80b16
fix request counter handling for perl handler, introduced in r3050
2009-09-04 09:54:16 +00:00
Igor Sysoev
63494b4c79
discrease slightly ngx_http_parse_header_line() size:
...
this line is not required for LF, however, this case is very seldom
2009-09-02 07:02:49 +00:00
Igor Sysoev
21e3e05eb1
discard request body before returning 413 error,
...
this fixes custom 413 page redirection bug introduced in r1456
2009-09-01 12:47:34 +00:00
Igor Sysoev
b4cc2fc0d7
fix request counter handling while discarding body, introduced in r3050
2009-09-01 12:40:27 +00:00
Igor Sysoev
56f06e69df
use %*s instead of %V
2009-09-01 12:35:52 +00:00
Igor Sysoev
2e9ea35fd7
fix segfault when a header starts with "\rX"
...
and logging is set to info or debug level
2009-09-01 12:32:37 +00:00
Igor Sysoev
f13a2507ae
bump version
2009-09-01 12:07:00 +00:00
Igor Sysoev
9f9054df82
retry aio sendfile if data are ready
2009-08-31 14:00:16 +00:00
Igor Sysoev
06bb9d294a
fix building on FreeBSD without --with-file-aio
2009-08-31 13:51:13 +00:00
Igor Sysoev
c76ba2b2c5
bump version
2009-08-31 13:50:37 +00:00
Igor Sysoev
fb30a18045
fix request counter handling for try_files, introduced in r3050
2009-08-31 11:21:04 +00:00
Igor Sysoev
bfff03406d
aio sendfile
2009-08-30 09:52:39 +00:00
Igor Sysoev
ddda411d14
*) ngx_http_ephemeral
...
*) use preallocated terminal_posted_request
2009-08-30 09:47:11 +00:00
Igor Sysoev
d11fa717f0
use local variable and fix debug log message
2009-08-29 18:42:31 +00:00
Igor Sysoev
61b09e59d7
fix request counter for memcached, introduced in r3050
2009-08-29 18:40:28 +00:00
Igor Sysoev
cfb6888d87
bump version
2009-08-29 18:39:32 +00:00
Igor Sysoev
8b8e995eb8
do not create cache key in AIO invocation
2009-08-28 11:23:50 +00:00
Igor Sysoev
a39d4e1aee
fix sending a cached file using AIO
2009-08-28 11:22:27 +00:00
Igor Sysoev
aa4200b551
do not disable gzip for MSIE 6.0 SV1 in "gzip_disable msie6"
2009-08-28 08:19:02 +00:00
Igor Sysoev
6fb506a215
directio_alignment
2009-08-28 08:15:55 +00:00
Igor Sysoev
a962506498
FreeBSD and Linux AIO support
2009-08-28 08:12:35 +00:00
Igor Sysoev
1163af9fae
style fix
2009-08-28 07:50:45 +00:00
Igor Sysoev
5297d456d8
axe r->connection->destroyed testing
2009-08-26 16:14:57 +00:00
Igor Sysoev
b603dd4b43
request reference counter
2009-08-26 16:04:05 +00:00
Igor Sysoev
79fb302daf
bump version
2009-08-25 08:47:58 +00:00
Igor Sysoev
a79f8a5655
strict testing "access_log off"
2009-08-23 17:06:33 +00:00