Mercurial > hg > nginx-vendor-0-5
annotate src/http/modules/ngx_http_ssi_filter_module.h @ 328:26ff8d6b618d NGINX_0_5_34
nginx 0.5.34
*) Change: now the full request line instead of URI only is written to
error_log.
*) Feature: Cygwin compatibility.
Thanks to Vladimir Kutakov.
*) Feature: the "merge_slashes" directive.
*) Feature: the "gzip_vary" directive.
*) Feature: the "server_tokens" directive.
*) Feature: the "access_log" directive may be used inside the
"limit_except" block.
*) Bugfix: if the $server_protocol was used in FastCGI parameters and a
request line length was near to the "client_header_buffer_size"
directive value, then nginx issued an alert "fastcgi: the request
record is too big".
*) Bugfix: if a plain text HTTP/0.9 version request was made to HTTPS
server, then nginx returned usual response.
*) Bugfix: URL double escaping in a redirect of the "msie_refresh"
directive; bug appeared in 0.5.28.
*) Bugfix: a segmentation fault might occur in worker process if
subrequests were used.
*) Bugfix: the big responses may be transferred truncated if SSL and
gzip were used.
*) Bugfix: compatibility with mget.
*) Bugfix: nginx did not unescape URI in the "include" SSI command.
*) Bugfix: the segmentation fault was occurred on start or while
reconfiguration if variable was used in the "charset" or
"source_charset" directives.
*) Bugfix: nginx returned the 400 response on requests like
"GET http://www.domain.com HTTP/1.0".
Thanks to James Oakley.
*) Bugfix: a segmentation fault occurred in worker process if
$date_local and $date_gmt were used outside the
ngx_http_ssi_filter_module.
*) Bugfix: a segmentation fault might occur in worker process if debug
log was enabled.
Thanks to Andrei Nigmatulin.
*) Bugfix: ngx_http_memcached_module did not set
$upstream_response_time.
Thanks to Maxim Dounin.
*) Bugfix: a worker process may got caught in an endless loop, if the
memcached was used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 13 Dec 2007 00:00:00 +0300 |
parents | f70f2f565fe0 |
children |
rev | line source |
---|---|
146 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_HTTP_SSI_FILTER_H_INCLUDED_ | |
8 #define _NGX_HTTP_SSI_FILTER_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 #include <ngx_http.h> | |
14 | |
15 | |
326 | 16 #define NGX_HTTP_SSI_MAX_PARAMS 16 |
146 | 17 |
326 | 18 #define NGX_HTTP_SSI_COMMAND_LEN 32 |
19 #define NGX_HTTP_SSI_PARAM_LEN 32 | |
20 #define NGX_HTTP_SSI_PARAMS_N 4 | |
146 | 21 |
22 | |
326 | 23 #define NGX_HTTP_SSI_COND_IF 1 |
24 #define NGX_HTTP_SSI_COND_ELSE 2 | |
25 | |
26 | |
27 #define NGX_HTTP_SSI_NO_ENCODING 0 | |
28 #define NGX_HTTP_SSI_URL_ENCODING 1 | |
29 #define NGX_HTTP_SSI_ENTITY_ENCODING 2 | |
178 | 30 |
31 | |
146 | 32 typedef struct { |
33 ngx_hash_t hash; | |
34 ngx_hash_keys_arrays_t commands; | |
35 } ngx_http_ssi_main_conf_t; | |
36 | |
37 | |
38 typedef struct { | |
39 ngx_buf_t *buf; | |
40 | |
41 u_char *pos; | |
42 u_char *copy_start; | |
43 u_char *copy_end; | |
44 | |
45 ngx_uint_t key; | |
46 ngx_str_t command; | |
47 ngx_array_t params; | |
48 ngx_table_elt_t *param; | |
49 ngx_table_elt_t params_array[NGX_HTTP_SSI_PARAMS_N]; | |
50 | |
51 ngx_chain_t *in; | |
52 ngx_chain_t *out; | |
53 ngx_chain_t **last_out; | |
54 ngx_chain_t *busy; | |
55 ngx_chain_t *free; | |
56 | |
57 ngx_uint_t state; | |
58 ngx_uint_t saved_state; | |
59 size_t saved; | |
60 size_t looked; | |
61 | |
62 size_t value_len; | |
63 | |
248 | 64 ngx_list_t *variables; |
216 | 65 ngx_array_t *blocks; |
146 | 66 |
178 | 67 unsigned conditional:2; |
326 | 68 unsigned encoding:2; |
216 | 69 unsigned block:1; |
178 | 70 unsigned output:1; |
71 unsigned output_chosen:1; | |
146 | 72 |
244 | 73 ngx_http_request_t *wait; |
158 | 74 void *value_buf; |
146 | 75 ngx_str_t timefmt; |
76 ngx_str_t errmsg; | |
77 } ngx_http_ssi_ctx_t; | |
78 | |
79 | |
80 typedef ngx_int_t (*ngx_http_ssi_command_pt) (ngx_http_request_t *r, | |
81 ngx_http_ssi_ctx_t *ctx, ngx_str_t **); | |
82 | |
83 | |
84 typedef struct { | |
85 ngx_str_t name; | |
86 ngx_uint_t index; | |
87 | |
88 unsigned mandatory:1; | |
89 unsigned multiple:1; | |
90 } ngx_http_ssi_param_t; | |
91 | |
92 | |
93 typedef struct { | |
94 ngx_str_t name; | |
95 ngx_http_ssi_command_pt handler; | |
96 ngx_http_ssi_param_t *params; | |
97 | |
178 | 98 unsigned conditional:2; |
216 | 99 unsigned block:1; |
146 | 100 unsigned flush:1; |
101 } ngx_http_ssi_command_t; | |
102 | |
103 | |
104 extern ngx_module_t ngx_http_ssi_filter_module; | |
105 | |
106 | |
107 #endif /* _NGX_HTTP_SSI_FILTER_H_INCLUDED_ */ |