2004-09-28 16:34:51 +08:00
|
|
|
|
|
|
|
/*
|
2004-09-30 00:00:49 +08:00
|
|
|
* Copyright (C) Igor Sysoev
|
2004-09-28 16:34:51 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2003-05-20 00:39:14 +08:00
|
|
|
#ifndef _NGX_HTTP_REQUEST_H_INCLUDED_
|
|
|
|
#define _NGX_HTTP_REQUEST_H_INCLUDED_
|
|
|
|
|
|
|
|
|
2006-05-23 22:54:58 +08:00
|
|
|
#define NGX_HTTP_MAX_URI_CHANGES 10
|
2006-06-29 00:00:26 +08:00
|
|
|
#define NGX_HTTP_MAX_SUBREQUESTS 50
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
|
2006-05-11 22:43:47 +08:00
|
|
|
/* must be 2^n */
|
|
|
|
#define NGX_HTTP_LC_HEADER_LEN 32
|
|
|
|
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
|
2004-09-23 14:32:00 +08:00
|
|
|
#define NGX_HTTP_DISCARD_BUFFER_SIZE 4096
|
|
|
|
#define NGX_HTTP_LINGERING_BUFFER_SIZE 4096
|
|
|
|
|
|
|
|
|
2004-03-16 15:10:12 +08:00
|
|
|
#define NGX_HTTP_VERSION_9 9
|
|
|
|
#define NGX_HTTP_VERSION_10 1000
|
|
|
|
#define NGX_HTTP_VERSION_11 1001
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2006-04-14 17:53:38 +08:00
|
|
|
#define NGX_HTTP_UNKNOWN 0x0001
|
|
|
|
#define NGX_HTTP_GET 0x0002
|
|
|
|
#define NGX_HTTP_HEAD 0x0004
|
|
|
|
#define NGX_HTTP_POST 0x0008
|
|
|
|
#define NGX_HTTP_PUT 0x0010
|
|
|
|
#define NGX_HTTP_DELETE 0x0020
|
2006-04-19 23:30:56 +08:00
|
|
|
#define NGX_HTTP_MKCOL 0x0040
|
2006-11-14 20:43:48 +08:00
|
|
|
#define NGX_HTTP_COPY 0x0080
|
|
|
|
#define NGX_HTTP_MOVE 0x0100
|
|
|
|
#define NGX_HTTP_OPTIONS 0x0200
|
|
|
|
#define NGX_HTTP_PROPFIND 0x0400
|
|
|
|
#define NGX_HTTP_PROPPATCH 0x0800
|
|
|
|
#define NGX_HTTP_LOCK 0x1000
|
|
|
|
#define NGX_HTTP_UNLOCK 0x2000
|
2007-03-31 02:59:26 +08:00
|
|
|
#define NGX_HTTP_TRACE 0x4000
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2004-03-16 15:10:12 +08:00
|
|
|
#define NGX_HTTP_CONNECTION_CLOSE 1
|
|
|
|
#define NGX_HTTP_CONNECTION_KEEP_ALIVE 2
|
2003-05-20 00:39:14 +08:00
|
|
|
|
|
|
|
|
2004-03-16 15:10:12 +08:00
|
|
|
#define NGX_NONE 1
|
2003-10-08 23:32:54 +08:00
|
|
|
|
|
|
|
|
2004-03-16 15:10:12 +08:00
|
|
|
#define NGX_HTTP_PARSE_HEADER_DONE 1
|
2003-10-27 16:53:49 +08:00
|
|
|
|
2004-03-16 15:10:12 +08:00
|
|
|
#define NGX_HTTP_CLIENT_ERROR 10
|
|
|
|
#define NGX_HTTP_PARSE_INVALID_METHOD 10
|
|
|
|
#define NGX_HTTP_PARSE_INVALID_REQUEST 11
|
2005-03-28 22:43:02 +08:00
|
|
|
#define NGX_HTTP_PARSE_INVALID_09_METHOD 12
|
2003-10-27 16:53:49 +08:00
|
|
|
|
2005-03-28 22:43:02 +08:00
|
|
|
#define NGX_HTTP_PARSE_INVALID_HEADER 13
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2006-10-13 23:20:10 +08:00
|
|
|
|
nginx-0.3.8-RELEASE import
*) Security: nginx now checks URI got from a backend in
"X-Accel-Redirect" header line or in SSI file for the "/../" paths
and zeroes.
*) Change: nginx now does not treat the empty user name in the
"Authorization" header line as valid one.
*) Feature: the "ssl_session_timeout" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the "auth_http_header" directive of the
ngx_imap_auth_http_module.
*) Feature: the "add_header" directive.
*) Feature: the ngx_http_realip_module.
*) Feature: the new variables to use in the "log_format" directive:
$bytes_sent, $apache_bytes_sent, $status, $time_gmt, $uri,
$request_time, $request_length, $upstream_status,
$upstream_response_time, $gzip_ratio, $uid_got, $uid_set,
$connection, $pipe, and $msec. The parameters in the "%name" form
will be canceled soon.
*) Change: now the false variable values in the "if" directive are the
empty string "" and string starting with "0".
*) Bugfix: while using proxied or FastCGI-server nginx may leave
connections and temporary files with client requests in open state.
*) Bugfix: the worker processes did not flush the buffered logs on
graceful exit.
*) Bugfix: if the request URI was changes by the "rewrite" directive
and the request was proxied in location given by regular expression,
then the incorrect request was transferred to backend; the bug had
appeared in 0.2.6.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" header.
*) Bugfix: nginx may stop to accept requests if the "rtsig" method and
several worker processes were used.
*) Bugfix: the "\"" and "\'" escape symbols were incorrectly handled in
SSI commands.
*) Bugfix: if the response was ended just after the SSI command and
gzipping was used, then the response did not transferred complete or
did not transferred at all.
2005-11-10 01:25:55 +08:00
|
|
|
#define NGX_HTTP_ZERO_IN_URI 1
|
2006-10-13 23:20:10 +08:00
|
|
|
#define NGX_HTTP_SUBREQUEST_IN_MEMORY 2
|
nginx-0.3.8-RELEASE import
*) Security: nginx now checks URI got from a backend in
"X-Accel-Redirect" header line or in SSI file for the "/../" paths
and zeroes.
*) Change: nginx now does not treat the empty user name in the
"Authorization" header line as valid one.
*) Feature: the "ssl_session_timeout" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the "auth_http_header" directive of the
ngx_imap_auth_http_module.
*) Feature: the "add_header" directive.
*) Feature: the ngx_http_realip_module.
*) Feature: the new variables to use in the "log_format" directive:
$bytes_sent, $apache_bytes_sent, $status, $time_gmt, $uri,
$request_time, $request_length, $upstream_status,
$upstream_response_time, $gzip_ratio, $uid_got, $uid_set,
$connection, $pipe, and $msec. The parameters in the "%name" form
will be canceled soon.
*) Change: now the false variable values in the "if" directive are the
empty string "" and string starting with "0".
*) Bugfix: while using proxied or FastCGI-server nginx may leave
connections and temporary files with client requests in open state.
*) Bugfix: the worker processes did not flush the buffered logs on
graceful exit.
*) Bugfix: if the request URI was changes by the "rewrite" directive
and the request was proxied in location given by regular expression,
then the incorrect request was transferred to backend; the bug had
appeared in 0.2.6.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" header.
*) Bugfix: nginx may stop to accept requests if the "rtsig" method and
several worker processes were used.
*) Bugfix: the "\"" and "\'" escape symbols were incorrectly handled in
SSI commands.
*) Bugfix: if the response was ended just after the SSI command and
gzipping was used, then the response did not transferred complete or
did not transferred at all.
2005-11-10 01:25:55 +08:00
|
|
|
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2003-10-28 05:01:00 +08:00
|
|
|
#define NGX_HTTP_OK 200
|
2006-04-14 17:53:38 +08:00
|
|
|
#define NGX_HTTP_CREATED 201
|
2005-05-15 02:42:03 +08:00
|
|
|
#define NGX_HTTP_NO_CONTENT 204
|
2003-10-28 05:01:00 +08:00
|
|
|
#define NGX_HTTP_PARTIAL_CONTENT 206
|
|
|
|
|
|
|
|
#define NGX_HTTP_SPECIAL_RESPONSE 300
|
|
|
|
#define NGX_HTTP_MOVED_PERMANENTLY 301
|
|
|
|
#define NGX_HTTP_MOVED_TEMPORARILY 302
|
|
|
|
#define NGX_HTTP_NOT_MODIFIED 304
|
|
|
|
|
|
|
|
#define NGX_HTTP_BAD_REQUEST 400
|
2005-03-23 00:02:46 +08:00
|
|
|
#define NGX_HTTP_UNAUTHORIZED 401
|
2003-10-28 05:01:00 +08:00
|
|
|
#define NGX_HTTP_FORBIDDEN 403
|
|
|
|
#define NGX_HTTP_NOT_FOUND 404
|
|
|
|
#define NGX_HTTP_NOT_ALLOWED 405
|
|
|
|
#define NGX_HTTP_REQUEST_TIME_OUT 408
|
2006-04-19 23:30:56 +08:00
|
|
|
#define NGX_HTTP_CONFLICT 409
|
2005-11-26 18:11:11 +08:00
|
|
|
#define NGX_HTTP_LENGTH_REQUIRED 411
|
2007-01-19 04:51:51 +08:00
|
|
|
#define NGX_HTTP_PRECONDITION_FAILED 412
|
2003-10-28 05:01:00 +08:00
|
|
|
#define NGX_HTTP_REQUEST_ENTITY_TOO_LARGE 413
|
|
|
|
#define NGX_HTTP_REQUEST_URI_TOO_LARGE 414
|
2006-04-19 23:30:56 +08:00
|
|
|
#define NGX_HTTP_UNSUPPORTED_MEDIA_TYPE 415
|
2003-10-28 05:01:00 +08:00
|
|
|
#define NGX_HTTP_RANGE_NOT_SATISFIABLE 416
|
|
|
|
|
2004-05-15 00:51:47 +08:00
|
|
|
|
|
|
|
/* Our own HTTP codes */
|
|
|
|
|
2005-12-07 22:51:31 +08:00
|
|
|
/* The special code to close connection without any response */
|
|
|
|
#define NGX_HTTP_CLOSE 444
|
|
|
|
|
2006-05-07 00:28:56 +08:00
|
|
|
#define NGX_HTTP_OWN_CODES 495
|
|
|
|
|
|
|
|
#define NGX_HTTPS_CERT_ERROR 495
|
|
|
|
#define NGX_HTTPS_NO_CERT 496
|
2004-07-09 15:12:14 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* We use the special code for the plain HTTP requests that are sent to
|
2005-11-15 21:30:52 +08:00
|
|
|
* HTTPS port to distinguish it from 4XX in an error page redirection
|
2004-07-09 15:12:14 +08:00
|
|
|
*/
|
|
|
|
#define NGX_HTTP_TO_HTTPS 497
|
2004-05-15 00:51:47 +08:00
|
|
|
|
2006-02-16 23:26:46 +08:00
|
|
|
/* 498 is the canceled code for the requests with invalid host name */
|
2004-05-15 00:51:47 +08:00
|
|
|
|
2003-11-19 00:49:00 +08:00
|
|
|
/*
|
2004-01-19 05:09:21 +08:00
|
|
|
* HTTP does not define the code for the case when a client closed
|
|
|
|
* the connection while we are processing its request so we introduce
|
|
|
|
* own code to log such situation when a client has closed the connection
|
|
|
|
* before we even try to send the HTTP header to it
|
2003-11-19 00:49:00 +08:00
|
|
|
*/
|
2003-11-19 05:34:08 +08:00
|
|
|
#define NGX_HTTP_CLIENT_CLOSED_REQUEST 499
|
2003-11-19 00:49:00 +08:00
|
|
|
|
2004-05-15 00:51:47 +08:00
|
|
|
|
2003-10-28 05:01:00 +08:00
|
|
|
#define NGX_HTTP_INTERNAL_SERVER_ERROR 500
|
|
|
|
#define NGX_HTTP_NOT_IMPLEMENTED 501
|
|
|
|
#define NGX_HTTP_BAD_GATEWAY 502
|
|
|
|
#define NGX_HTTP_SERVICE_UNAVAILABLE 503
|
|
|
|
#define NGX_HTTP_GATEWAY_TIME_OUT 504
|
2006-04-19 23:30:56 +08:00
|
|
|
#define NGX_HTTP_INSUFFICIENT_STORAGE 507
|
2003-05-20 00:39:14 +08:00
|
|
|
|
|
|
|
|
2006-10-31 04:25:22 +08:00
|
|
|
#define NGX_HTTP_LOWLEVEL_BUFFERED 0xf0
|
|
|
|
#define NGX_HTTP_WRITE_BUFFERED 0x10
|
|
|
|
#define NGX_HTTP_GZIP_BUFFERED 0x20
|
|
|
|
#define NGX_HTTP_SSI_BUFFERED 0x01
|
2007-04-20 01:54:23 +08:00
|
|
|
#define NGX_HTTP_SUB_BUFFERED 0x02
|
|
|
|
#define NGX_HTTP_COPY_BUFFERED 0x04
|
2006-01-11 23:26:57 +08:00
|
|
|
|
|
|
|
|
2003-12-26 04:26:58 +08:00
|
|
|
typedef enum {
|
|
|
|
NGX_HTTP_INITING_REQUEST_STATE = 0,
|
|
|
|
NGX_HTTP_READING_REQUEST_STATE,
|
|
|
|
NGX_HTTP_PROCESS_REQUEST_STATE,
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2003-12-26 04:26:58 +08:00
|
|
|
NGX_HTTP_CONNECT_UPSTREAM_STATE,
|
|
|
|
NGX_HTTP_WRITING_UPSTREAM_STATE,
|
|
|
|
NGX_HTTP_READING_UPSTREAM_STATE,
|
|
|
|
|
|
|
|
NGX_HTTP_WRITING_REQUEST_STATE,
|
|
|
|
NGX_HTTP_LINGERING_CLOSE_STATE,
|
|
|
|
NGX_HTTP_KEEPALIVE_STATE
|
|
|
|
} ngx_http_state_e;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_str_t name;
|
|
|
|
ngx_uint_t offset;
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
ngx_http_header_handler_pt handler;
|
2003-05-20 00:39:14 +08:00
|
|
|
} ngx_http_header_t;
|
|
|
|
|
|
|
|
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
typedef struct {
|
|
|
|
ngx_str_t name;
|
|
|
|
ngx_uint_t offset;
|
2005-10-24 23:09:41 +08:00
|
|
|
} ngx_http_header_out_t;
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
|
|
|
|
|
2003-05-20 00:39:14 +08:00
|
|
|
typedef struct {
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_list_t headers;
|
2003-10-29 16:30:44 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_table_elt_t *host;
|
|
|
|
ngx_table_elt_t *connection;
|
|
|
|
ngx_table_elt_t *if_modified_since;
|
|
|
|
ngx_table_elt_t *user_agent;
|
|
|
|
ngx_table_elt_t *referer;
|
|
|
|
ngx_table_elt_t *content_length;
|
|
|
|
ngx_table_elt_t *content_type;
|
2004-03-13 00:57:08 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_table_elt_t *range;
|
2007-11-09 23:41:35 +08:00
|
|
|
ngx_table_elt_t *if_range;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2005-11-26 18:11:11 +08:00
|
|
|
ngx_table_elt_t *transfer_encoding;
|
|
|
|
|
2004-03-13 00:57:08 +08:00
|
|
|
#if (NGX_HTTP_GZIP)
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_table_elt_t *accept_encoding;
|
|
|
|
ngx_table_elt_t *via;
|
2004-03-13 00:57:08 +08:00
|
|
|
#endif
|
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_table_elt_t *authorization;
|
2003-11-04 06:20:44 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_table_elt_t *keep_alive;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
nginx-0.3.8-RELEASE import
*) Security: nginx now checks URI got from a backend in
"X-Accel-Redirect" header line or in SSI file for the "/../" paths
and zeroes.
*) Change: nginx now does not treat the empty user name in the
"Authorization" header line as valid one.
*) Feature: the "ssl_session_timeout" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the "auth_http_header" directive of the
ngx_imap_auth_http_module.
*) Feature: the "add_header" directive.
*) Feature: the ngx_http_realip_module.
*) Feature: the new variables to use in the "log_format" directive:
$bytes_sent, $apache_bytes_sent, $status, $time_gmt, $uri,
$request_time, $request_length, $upstream_status,
$upstream_response_time, $gzip_ratio, $uid_got, $uid_set,
$connection, $pipe, and $msec. The parameters in the "%name" form
will be canceled soon.
*) Change: now the false variable values in the "if" directive are the
empty string "" and string starting with "0".
*) Bugfix: while using proxied or FastCGI-server nginx may leave
connections and temporary files with client requests in open state.
*) Bugfix: the worker processes did not flush the buffered logs on
graceful exit.
*) Bugfix: if the request URI was changes by the "rewrite" directive
and the request was proxied in location given by regular expression,
then the incorrect request was transferred to backend; the bug had
appeared in 0.2.6.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" header.
*) Bugfix: nginx may stop to accept requests if the "rtsig" method and
several worker processes were used.
*) Bugfix: the "\"" and "\'" escape symbols were incorrectly handled in
SSI commands.
*) Bugfix: if the response was ended just after the SSI command and
gzipping was used, then the response did not transferred complete or
did not transferred at all.
2005-11-10 01:25:55 +08:00
|
|
|
#if (NGX_HTTP_PROXY || NGX_HTTP_REALIP)
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_table_elt_t *x_forwarded_for;
|
2004-03-13 00:57:08 +08:00
|
|
|
#endif
|
|
|
|
|
nginx-0.3.8-RELEASE import
*) Security: nginx now checks URI got from a backend in
"X-Accel-Redirect" header line or in SSI file for the "/../" paths
and zeroes.
*) Change: nginx now does not treat the empty user name in the
"Authorization" header line as valid one.
*) Feature: the "ssl_session_timeout" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the "auth_http_header" directive of the
ngx_imap_auth_http_module.
*) Feature: the "add_header" directive.
*) Feature: the ngx_http_realip_module.
*) Feature: the new variables to use in the "log_format" directive:
$bytes_sent, $apache_bytes_sent, $status, $time_gmt, $uri,
$request_time, $request_length, $upstream_status,
$upstream_response_time, $gzip_ratio, $uid_got, $uid_set,
$connection, $pipe, and $msec. The parameters in the "%name" form
will be canceled soon.
*) Change: now the false variable values in the "if" directive are the
empty string "" and string starting with "0".
*) Bugfix: while using proxied or FastCGI-server nginx may leave
connections and temporary files with client requests in open state.
*) Bugfix: the worker processes did not flush the buffered logs on
graceful exit.
*) Bugfix: if the request URI was changes by the "rewrite" directive
and the request was proxied in location given by regular expression,
then the incorrect request was transferred to backend; the bug had
appeared in 0.2.6.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" header.
*) Bugfix: nginx may stop to accept requests if the "rtsig" method and
several worker processes were used.
*) Bugfix: the "\"" and "\'" escape symbols were incorrectly handled in
SSI commands.
*) Bugfix: if the response was ended just after the SSI command and
gzipping was used, then the response did not transferred complete or
did not transferred at all.
2005-11-10 01:25:55 +08:00
|
|
|
#if (NGX_HTTP_REALIP)
|
|
|
|
ngx_table_elt_t *x_real_ip;
|
|
|
|
#endif
|
|
|
|
|
2005-02-16 21:40:36 +08:00
|
|
|
#if (NGX_HTTP_HEADERS)
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_table_elt_t *accept;
|
|
|
|
ngx_table_elt_t *accept_language;
|
2005-02-16 21:40:36 +08:00
|
|
|
#endif
|
|
|
|
|
2006-04-19 23:30:56 +08:00
|
|
|
#if (NGX_HTTP_DAV)
|
|
|
|
ngx_table_elt_t *depth;
|
|
|
|
ngx_table_elt_t *destination;
|
2007-01-19 05:11:23 +08:00
|
|
|
ngx_table_elt_t *overwrite;
|
2006-08-30 18:39:17 +08:00
|
|
|
ngx_table_elt_t *date;
|
2006-04-19 23:30:56 +08:00
|
|
|
#endif
|
|
|
|
|
2005-03-23 00:02:46 +08:00
|
|
|
ngx_str_t user;
|
|
|
|
ngx_str_t passwd;
|
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_array_t cookies;
|
2004-08-27 23:40:59 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
size_t host_name_len;
|
2006-07-08 00:33:19 +08:00
|
|
|
off_t content_length_n;
|
2005-03-19 20:38:37 +08:00
|
|
|
time_t keep_alive_n;
|
2004-06-16 23:32:11 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned connection_type:2;
|
|
|
|
unsigned msie:1;
|
|
|
|
unsigned msie4:1;
|
|
|
|
unsigned opera:1;
|
|
|
|
unsigned gecko:1;
|
|
|
|
unsigned konqueror:1;
|
2003-05-20 00:39:14 +08:00
|
|
|
} ngx_http_headers_in_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_list_t headers;
|
|
|
|
|
|
|
|
ngx_uint_t status;
|
|
|
|
ngx_str_t status_line;
|
|
|
|
|
|
|
|
ngx_table_elt_t *server;
|
|
|
|
ngx_table_elt_t *date;
|
|
|
|
ngx_table_elt_t *content_length;
|
|
|
|
ngx_table_elt_t *content_encoding;
|
|
|
|
ngx_table_elt_t *location;
|
2007-11-27 19:56:18 +08:00
|
|
|
ngx_table_elt_t *refresh;
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_table_elt_t *last_modified;
|
|
|
|
ngx_table_elt_t *content_range;
|
|
|
|
ngx_table_elt_t *accept_ranges;
|
2005-03-23 00:02:46 +08:00
|
|
|
ngx_table_elt_t *www_authenticate;
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_table_elt_t *expires;
|
|
|
|
ngx_table_elt_t *etag;
|
|
|
|
|
2006-06-29 00:00:26 +08:00
|
|
|
ngx_str_t *override_charset;
|
|
|
|
|
|
|
|
size_t content_type_len;
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
ngx_str_t content_type;
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_str_t charset;
|
|
|
|
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
ngx_array_t cache_control;
|
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
off_t content_length_n;
|
|
|
|
time_t date_time;
|
|
|
|
time_t last_modified_time;
|
2003-05-20 00:39:14 +08:00
|
|
|
} ngx_http_headers_out_t;
|
|
|
|
|
|
|
|
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 21:03:58 +08:00
|
|
|
typedef void (*ngx_http_client_body_handler_pt)(ngx_http_request_t *r);
|
|
|
|
|
2004-03-30 01:43:58 +08:00
|
|
|
typedef struct {
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 21:03:58 +08:00
|
|
|
ngx_temp_file_t *temp_file;
|
|
|
|
ngx_chain_t *bufs;
|
|
|
|
ngx_buf_t *buf;
|
2006-07-08 00:33:19 +08:00
|
|
|
off_t rest;
|
2006-04-14 17:53:38 +08:00
|
|
|
ngx_chain_t *to_write;
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 21:03:58 +08:00
|
|
|
ngx_http_client_body_handler_pt post_handler;
|
2004-03-30 01:43:58 +08:00
|
|
|
} ngx_http_request_body_t;
|
|
|
|
|
|
|
|
|
2004-09-21 13:38:28 +08:00
|
|
|
typedef struct {
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_http_request_t *request;
|
2004-09-21 23:47:05 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_buf_t **busy;
|
|
|
|
ngx_int_t nbusy;
|
2004-09-21 23:47:05 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_buf_t **free;
|
|
|
|
ngx_int_t nfree;
|
2004-09-21 23:47:05 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_uint_t pipeline; /* unsigned pipeline:1; */
|
2004-09-21 13:38:28 +08:00
|
|
|
} ngx_http_connection_t;
|
|
|
|
|
|
|
|
|
2007-08-13 03:48:12 +08:00
|
|
|
typedef struct ngx_http_server_name_s ngx_http_server_name_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
ngx_hash_combined_t names;
|
|
|
|
|
|
|
|
ngx_uint_t nregex;
|
|
|
|
ngx_http_server_name_t *regex;
|
|
|
|
} ngx_http_virtual_names_t;
|
2005-12-27 01:07:48 +08:00
|
|
|
|
|
|
|
|
2005-10-24 23:09:41 +08:00
|
|
|
typedef void (*ngx_http_cleanup_pt)(void *data);
|
|
|
|
|
|
|
|
typedef struct ngx_http_cleanup_s ngx_http_cleanup_t;
|
|
|
|
|
|
|
|
struct ngx_http_cleanup_s {
|
2005-12-27 01:07:48 +08:00
|
|
|
ngx_http_cleanup_pt handler;
|
|
|
|
void *data;
|
|
|
|
ngx_http_cleanup_t *next;
|
2005-10-24 23:09:41 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-10-13 23:20:10 +08:00
|
|
|
typedef ngx_int_t (*ngx_http_post_subrequest_pt)(ngx_http_request_t *r,
|
|
|
|
void *data, ngx_int_t rc);
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
ngx_http_post_subrequest_pt handler;
|
|
|
|
void *data;
|
|
|
|
} ngx_http_post_subrequest_t;
|
|
|
|
|
|
|
|
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
typedef struct ngx_http_postponed_request_s ngx_http_postponed_request_t;
|
|
|
|
|
|
|
|
struct ngx_http_postponed_request_s {
|
2005-08-23 23:36:54 +08:00
|
|
|
ngx_http_request_t *request;
|
|
|
|
ngx_chain_t *out;
|
|
|
|
ngx_http_postponed_request_t *next;
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-06-16 23:32:11 +08:00
|
|
|
typedef ngx_int_t (*ngx_http_handler_pt)(ngx_http_request_t *r);
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
typedef void (*ngx_http_event_handler_pt)(ngx_http_request_t *r);
|
|
|
|
|
2003-10-10 23:10:50 +08:00
|
|
|
|
2003-05-20 00:39:14 +08:00
|
|
|
struct ngx_http_request_s {
|
2005-03-19 20:38:37 +08:00
|
|
|
uint32_t signature; /* "HTTP" */
|
2004-06-24 15:53:37 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_connection_t *connection;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
void **ctx;
|
|
|
|
void **main_conf;
|
|
|
|
void **srv_conf;
|
|
|
|
void **loc_conf;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
ngx_http_event_handler_pt read_event_handler;
|
|
|
|
ngx_http_event_handler_pt write_event_handler;
|
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_http_cache_t *cache;
|
2003-11-27 15:45:22 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_http_upstream_t *upstream;
|
2007-04-19 04:23:19 +08:00
|
|
|
ngx_array_t *upstream_states;
|
|
|
|
/* of ngx_http_upstream_state_t */
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 21:03:58 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_pool_t *pool;
|
|
|
|
ngx_buf_t *header_in;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_http_headers_in_t headers_in;
|
|
|
|
ngx_http_headers_out_t headers_out;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_http_request_body_t *request_body;
|
2004-03-30 01:43:58 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
time_t lingering_time;
|
2007-04-21 15:50:19 +08:00
|
|
|
time_t start_sec;
|
|
|
|
ngx_msec_t start_msec;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_uint_t method;
|
|
|
|
ngx_uint_t http_version;
|
2005-11-15 21:30:52 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_str_t request_line;
|
|
|
|
ngx_str_t uri;
|
|
|
|
ngx_str_t args;
|
|
|
|
ngx_str_t exten;
|
|
|
|
ngx_str_t unparsed_uri;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_str_t method_name;
|
|
|
|
ngx_str_t http_protocol;
|
2005-11-15 21:30:52 +08:00
|
|
|
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
ngx_chain_t *out;
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_http_request_t *main;
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
ngx_http_request_t *parent;
|
|
|
|
ngx_http_postponed_request_t *postponed;
|
2006-10-13 23:20:10 +08:00
|
|
|
ngx_http_post_subrequest_t *post_subrequest;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
uint32_t in_addr;
|
|
|
|
ngx_uint_t port;
|
|
|
|
ngx_str_t *port_text; /* ":80" */
|
2005-12-27 01:07:48 +08:00
|
|
|
ngx_http_virtual_names_t *virtual_names;
|
2004-04-14 13:57:36 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_int_t phase_handler;
|
|
|
|
ngx_http_handler_pt content_handler;
|
2005-09-23 19:02:22 +08:00
|
|
|
ngx_uint_t access_code;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
nginx-0.3.8-RELEASE import
*) Security: nginx now checks URI got from a backend in
"X-Accel-Redirect" header line or in SSI file for the "/../" paths
and zeroes.
*) Change: nginx now does not treat the empty user name in the
"Authorization" header line as valid one.
*) Feature: the "ssl_session_timeout" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the "auth_http_header" directive of the
ngx_imap_auth_http_module.
*) Feature: the "add_header" directive.
*) Feature: the ngx_http_realip_module.
*) Feature: the new variables to use in the "log_format" directive:
$bytes_sent, $apache_bytes_sent, $status, $time_gmt, $uri,
$request_time, $request_length, $upstream_status,
$upstream_response_time, $gzip_ratio, $uid_got, $uid_set,
$connection, $pipe, and $msec. The parameters in the "%name" form
will be canceled soon.
*) Change: now the false variable values in the "if" directive are the
empty string "" and string starting with "0".
*) Bugfix: while using proxied or FastCGI-server nginx may leave
connections and temporary files with client requests in open state.
*) Bugfix: the worker processes did not flush the buffered logs on
graceful exit.
*) Bugfix: if the request URI was changes by the "rewrite" directive
and the request was proxied in location given by regular expression,
then the incorrect request was transferred to backend; the bug had
appeared in 0.2.6.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" header.
*) Bugfix: nginx may stop to accept requests if the "rtsig" method and
several worker processes were used.
*) Bugfix: the "\"" and "\'" escape symbols were incorrectly handled in
SSI commands.
*) Bugfix: if the response was ended just after the SSI command and
gzipping was used, then the response did not transferred complete or
did not transferred at all.
2005-11-10 01:25:55 +08:00
|
|
|
ngx_http_variable_value_t *variables;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2005-07-08 22:34:20 +08:00
|
|
|
size_t limit_rate;
|
|
|
|
|
2004-03-30 01:43:58 +08:00
|
|
|
/* used to learn the Apache compatible response length without a header */
|
2005-03-19 20:38:37 +08:00
|
|
|
size_t header_size;
|
2003-12-15 04:10:27 +08:00
|
|
|
|
2006-07-08 00:33:19 +08:00
|
|
|
off_t request_length;
|
2004-12-06 22:45:08 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_uint_t err_status;
|
2003-05-20 00:39:14 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_http_connection_t *http_connection;
|
2004-09-21 13:38:28 +08:00
|
|
|
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
ngx_http_log_handler_pt log_handler;
|
|
|
|
|
2005-10-24 23:09:41 +08:00
|
|
|
ngx_http_cleanup_t *cleanup;
|
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned http_state:4;
|
2003-12-26 04:26:58 +08:00
|
|
|
|
2004-10-11 23:07:03 +08:00
|
|
|
/* URI with "/." and on Win32 with "//" */
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned complex_uri:1;
|
2005-02-04 03:33:37 +08:00
|
|
|
|
2004-10-11 23:07:03 +08:00
|
|
|
/* URI with "%" */
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned quoted_uri:1;
|
2005-02-04 03:33:37 +08:00
|
|
|
|
|
|
|
/* URI with "+" */
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned plus_in_uri:1;
|
2005-02-04 03:33:37 +08:00
|
|
|
|
2005-02-16 21:40:36 +08:00
|
|
|
/* URI with "\0" or "%00" */
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned zero_in_uri:1;
|
2005-02-16 21:40:36 +08:00
|
|
|
|
2005-05-15 02:42:03 +08:00
|
|
|
unsigned invalid_header:1;
|
|
|
|
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
unsigned valid_location:1;
|
2005-03-28 22:43:02 +08:00
|
|
|
unsigned valid_unparsed_uri:1;
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned uri_changed:1;
|
|
|
|
unsigned uri_changes:4;
|
2005-02-04 03:33:37 +08:00
|
|
|
|
2006-04-14 17:53:38 +08:00
|
|
|
unsigned request_body_in_single_buf:1;
|
|
|
|
unsigned request_body_in_file_only:1;
|
|
|
|
unsigned request_body_in_persistent_file:1;
|
2007-01-25 16:45:04 +08:00
|
|
|
unsigned request_body_in_clean_file:1;
|
2006-04-14 17:53:38 +08:00
|
|
|
unsigned request_body_file_group_access:1;
|
2006-04-19 23:30:56 +08:00
|
|
|
unsigned request_body_file_log_level:3;
|
2006-04-14 17:53:38 +08:00
|
|
|
|
2006-01-11 23:26:57 +08:00
|
|
|
unsigned fast_subrequest:1;
|
2006-10-13 23:20:10 +08:00
|
|
|
unsigned subrequest_in_memory:1;
|
2006-01-11 23:26:57 +08:00
|
|
|
|
2007-12-27 22:21:59 +08:00
|
|
|
unsigned gzip:2;
|
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned proxy:1;
|
|
|
|
unsigned bypass_cache:1;
|
|
|
|
unsigned no_cache:1;
|
2003-11-03 06:56:18 +08:00
|
|
|
|
nginx-0.3.8-RELEASE import
*) Security: nginx now checks URI got from a backend in
"X-Accel-Redirect" header line or in SSI file for the "/../" paths
and zeroes.
*) Change: nginx now does not treat the empty user name in the
"Authorization" header line as valid one.
*) Feature: the "ssl_session_timeout" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the "auth_http_header" directive of the
ngx_imap_auth_http_module.
*) Feature: the "add_header" directive.
*) Feature: the ngx_http_realip_module.
*) Feature: the new variables to use in the "log_format" directive:
$bytes_sent, $apache_bytes_sent, $status, $time_gmt, $uri,
$request_time, $request_length, $upstream_status,
$upstream_response_time, $gzip_ratio, $uid_got, $uid_set,
$connection, $pipe, and $msec. The parameters in the "%name" form
will be canceled soon.
*) Change: now the false variable values in the "if" directive are the
empty string "" and string starting with "0".
*) Bugfix: while using proxied or FastCGI-server nginx may leave
connections and temporary files with client requests in open state.
*) Bugfix: the worker processes did not flush the buffered logs on
graceful exit.
*) Bugfix: if the request URI was changes by the "rewrite" directive
and the request was proxied in location given by regular expression,
then the incorrect request was transferred to backend; the bug had
appeared in 0.2.6.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" header.
*) Bugfix: nginx may stop to accept requests if the "rtsig" method and
several worker processes were used.
*) Bugfix: the "\"" and "\'" escape symbols were incorrectly handled in
SSI commands.
*) Bugfix: if the response was ended just after the SSI command and
gzipping was used, then the response did not transferred complete or
did not transferred at all.
2005-11-10 01:25:55 +08:00
|
|
|
#if (NGX_HTTP_REALIP)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* instead of using the request context data in ngx_http_realip_module
|
|
|
|
* we use the single bit in the request structure
|
|
|
|
*/
|
|
|
|
unsigned realip_set:1;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2007-01-08 01:47:17 +08:00
|
|
|
/*
|
|
|
|
* instead of using the request context data in ngx_http_limit_zone_module
|
|
|
|
* we use the single bit in the request structure
|
|
|
|
*/
|
|
|
|
unsigned limit_zone_set:1;
|
|
|
|
|
2003-06-02 23:24:30 +08:00
|
|
|
#if 0
|
2007-10-15 02:56:15 +08:00
|
|
|
unsigned cacheable:1;
|
2003-05-20 00:39:14 +08:00
|
|
|
#endif
|
2003-06-02 23:24:30 +08:00
|
|
|
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
unsigned pipeline:1;
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned plain_http:1;
|
|
|
|
unsigned chunked:1;
|
|
|
|
unsigned header_only:1;
|
2006-10-02 18:22:51 +08:00
|
|
|
unsigned zero_body:1;
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned keepalive:1;
|
|
|
|
unsigned lingering_close:1;
|
2005-08-30 18:55:07 +08:00
|
|
|
unsigned discard_body:1;
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
unsigned internal:1;
|
2006-08-29 00:57:48 +08:00
|
|
|
unsigned error_page:1;
|
2006-04-05 21:40:54 +08:00
|
|
|
unsigned post_action:1;
|
|
|
|
unsigned request_complete:1;
|
2006-07-28 23:16:17 +08:00
|
|
|
unsigned request_output:1;
|
|
|
|
unsigned header_sent:1;
|
nginx-0.1.29-RELEASE import
*) Feature: the ngx_http_ssi_module supports "include virtual" command.
*) Feature: the ngx_http_ssi_module supports the condition command like
'if expr="$NAME"' and "else" and "endif" commands. Only one nested
level is supported.
*) Feature: the ngx_http_ssi_module supports the DATE_LOCAL and
DATE_GMT variables and "config timefmt" command.
*) Feature: the "ssi_ignore_recycled_buffers" directive.
*) Bugfix: the "echo" command did not show the default value for the
empty QUERY_STRING variable.
*) Change: the ngx_http_proxy_module was rewritten.
*) Feature: the "proxy_redirect", "proxy_pass_request_headers",
"proxy_pass_request_body", and "proxy_method" directives.
*) Feature: the "proxy_set_header" directive. The "proxy_x_var" was
canceled and must be replaced with the proxy_set_header directive.
*) Change: the "proxy_preserve_host" is canceled and must be replaced
with the "proxy_set_header Host $host" and the "proxy_redirect off"
directives, the "proxy_set_header Host $host:$proxy_port" directive
and the appropriate proxy_redirect directives.
*) Change: the "proxy_set_x_real_ip" is canceled and must be replaced
with the "proxy_set_header X-Real-IP $remote_addr" directive.
*) Change: the "proxy_add_x_forwarded_for" is canceled and must be
replaced with
the "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for"
directive.
*) Change: the "proxy_set_x_url" is canceled and must be replaced with
the "proxy_set_header X-URL http://$host:$server_port$request_uri"
directive.
*) Feature: the "fastcgi_param" directive.
*) Change: the "fastcgi_root", "fastcgi_set_var" and "fastcgi_params"
directive are canceled and must be replaced with the fastcgi_param
directives.
*) Feature: the "index" directive can use the variables.
*) Feature: the "index" directive can be used at http and server levels.
*) Change: the last index only in the "index" directive can be absolute.
*) Feature: the "rewrite" directive can use the variables.
*) Feature: the "internal" directive.
*) Feature: the CONTENT_LENGTH, CONTENT_TYPE, REMOTE_PORT, SERVER_ADDR,
SERVER_PORT, SERVER_PROTOCOL, DOCUMENT_ROOT, SERVER_NAME,
REQUEST_METHOD, REQUEST_URI, and REMOTE_USER variables.
*) Change: nginx now passes the invalid lines in a client request
headers or a backend response header.
*) Bugfix: if the backend did not transfer response for a long time and
the "send_timeout" was less than "proxy_read_timeout", then nginx
returned the 408 response.
*) Bugfix: the segmentation fault was occurred if the backend sent an
invalid line in response header; the bug had appeared in 0.1.26.
*) Bugfix: the segmentation fault may occurred in FastCGI fault
tolerance configuration.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" and "Cache-Control" headers.
*) Bugfix: nginx did not take into account trailing dot in "Host"
header line.
*) Bugfix: the ngx_http_auth_module did not work under Linux.
*) Bugfix: the rewrite directive worked incorrectly, if the arguments
were in a request.
*) Bugfix: nginx could not be built on MacOS X.
2005-05-12 22:58:06 +08:00
|
|
|
unsigned done:1;
|
2005-06-16 02:33:41 +08:00
|
|
|
unsigned utf8:1;
|
2003-06-02 23:24:30 +08:00
|
|
|
|
2006-10-31 04:25:22 +08:00
|
|
|
unsigned buffered:4;
|
|
|
|
|
2005-05-16 21:53:20 +08:00
|
|
|
unsigned main_filter_need_in_memory:1;
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned filter_need_in_memory:1;
|
|
|
|
unsigned filter_need_temporary:1;
|
2005-11-26 18:11:11 +08:00
|
|
|
unsigned allow_ranges:1;
|
2003-06-02 23:24:30 +08:00
|
|
|
|
2004-09-16 00:00:43 +08:00
|
|
|
#if (NGX_STAT_STUB)
|
2005-03-19 20:38:37 +08:00
|
|
|
unsigned stat_reading:1;
|
|
|
|
unsigned stat_writing:1;
|
2004-09-16 00:00:43 +08:00
|
|
|
#endif
|
|
|
|
|
2006-06-29 00:00:26 +08:00
|
|
|
unsigned subrequests:8;
|
|
|
|
|
2003-06-02 23:24:30 +08:00
|
|
|
/* used to parse HTTP headers */
|
2006-10-12 21:08:26 +08:00
|
|
|
|
2005-03-19 20:38:37 +08:00
|
|
|
ngx_uint_t state;
|
|
|
|
u_char *uri_start;
|
|
|
|
u_char *uri_end;
|
|
|
|
u_char *uri_ext;
|
|
|
|
u_char *args_start;
|
|
|
|
u_char *request_start;
|
|
|
|
u_char *request_end;
|
|
|
|
u_char *method_end;
|
|
|
|
u_char *schema_start;
|
|
|
|
u_char *schema_end;
|
|
|
|
u_char *host_start;
|
|
|
|
u_char *host_end;
|
|
|
|
u_char *port_start;
|
|
|
|
u_char *port_end;
|
|
|
|
u_char *header_name_start;
|
|
|
|
u_char *header_name_end;
|
|
|
|
u_char *header_start;
|
|
|
|
u_char *header_end;
|
2006-05-11 22:43:47 +08:00
|
|
|
|
2006-10-12 21:08:26 +08:00
|
|
|
unsigned http_minor:16;
|
|
|
|
unsigned http_major:16;
|
|
|
|
|
2005-04-08 23:18:55 +08:00
|
|
|
ngx_uint_t header_hash;
|
2006-05-11 22:43:47 +08:00
|
|
|
ngx_uint_t lowcase_index;
|
|
|
|
u_char lowcase_header[NGX_HTTP_LC_HEADER_LEN];
|
2003-05-20 00:39:14 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2005-10-24 23:09:41 +08:00
|
|
|
extern ngx_http_header_t ngx_http_headers_in[];
|
|
|
|
extern ngx_http_header_out_t ngx_http_headers_out[];
|
2003-10-29 16:30:44 +08:00
|
|
|
|
|
|
|
|
2003-05-20 00:39:14 +08:00
|
|
|
#endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */
|