mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 21:53:31 -06:00
899b44eab2
*) 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.
213 lines
5.4 KiB
Plaintext
Executable File
213 lines
5.4 KiB
Plaintext
Executable File
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
have=NGX_HAVE_UNIX_DOMAIN . auto/have
|
|
|
|
|
|
# STUB
|
|
CC_WARN=
|
|
ngx_fmt_collect=yes
|
|
|
|
|
|
# C types
|
|
|
|
ngx_type="int"; . auto/types/sizeof
|
|
|
|
ngx_type="long"; . auto/types/sizeof
|
|
|
|
ngx_type="long long"; . auto/types/sizeof
|
|
|
|
ngx_type="void *"; . auto/types/sizeof; ngx_ptr_size=$ngx_size
|
|
ngx_param=NGX_PTR_SIZE; ngx_value=$ngx_size; . auto/types/value
|
|
|
|
|
|
# POSIX types
|
|
|
|
NGX_INCLUDE_AUTO_CONFIG_H="#include \"../$NGX_AUTO_CONFIG_H\""
|
|
|
|
ngx_type="uint64_t"; ngx_types="u_int64_t"; . auto/types/typedef
|
|
|
|
ngx_type="sig_atomic_t"; ngx_types="int"; . auto/types/typedef
|
|
. auto/types/sizeof
|
|
ngx_param=NGX_SIG_ATOMIC_T_SIZE; ngx_value=$ngx_size; . auto/types/value
|
|
|
|
ngx_type="socklen_t"; ngx_types="uint32_t"; . auto/types/typedef
|
|
|
|
ngx_type="in_addr_t"; ngx_types="uint32_t"; . auto/types/typedef
|
|
|
|
ngx_type="in_port_t"; ngx_types="u_short"; . auto/types/typedef
|
|
|
|
ngx_type="rlim_t"; ngx_types="int"; . auto/types/typedef
|
|
|
|
. auto/types/uintptr_t
|
|
|
|
. auto/endianess
|
|
|
|
ngx_type="size_t"; . auto/types/sizeof
|
|
ngx_param=NGX_MAX_SIZE_T_VALUE; ngx_value=$ngx_max_value; . auto/types/value
|
|
ngx_param=NGX_SIZE_T_LEN; ngx_value=$ngx_max_len; . auto/types/value
|
|
|
|
ngx_type="off_t"; . auto/types/sizeof
|
|
ngx_param=NGX_MAX_OFF_T_VALUE; ngx_value=$ngx_max_value; . auto/types/value
|
|
ngx_param=NGX_OFF_T_LEN; ngx_value=$ngx_max_len; . auto/types/value
|
|
|
|
ngx_type="time_t"; . auto/types/sizeof
|
|
ngx_param=NGX_TIME_T_SIZE; ngx_value=$ngx_size; . auto/types/value
|
|
ngx_param=NGX_TIME_T_LEN; ngx_value=$ngx_max_len; . auto/types/value
|
|
|
|
|
|
# syscalls, libc calls and some features
|
|
|
|
|
|
ngx_feature="setproctitle()"
|
|
ngx_feature_name="NGX_HAVE_SETPROCTITLE"
|
|
ngx_feature_run=no
|
|
ngx_feature_incs=
|
|
ngx_feature_libs=$NGX_SETPROCTITLE_LIB
|
|
ngx_feature_test="setproctitle(\"test\");"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="pread()"
|
|
ngx_feature_name="NGX_HAVE_PREAD"
|
|
ngx_feature_run=no
|
|
ngx_feature_incs=
|
|
ngx_feature_libs=
|
|
ngx_feature_test="char buf[1]; ssize_t n; n = pread(0, buf, 1, 0)"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="pwrite()"
|
|
ngx_feature_name="NGX_HAVE_PWRITE"
|
|
ngx_feature_run=no
|
|
ngx_feature_incs=
|
|
ngx_feature_libs=
|
|
ngx_feature_test="char buf[1]; ssize_t n; n = pwrite(1, buf, 1, 0)"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="strerror_r()"
|
|
ngx_feature_name="NGX_HAVE_STRERROR_R"
|
|
ngx_feature_run=yes
|
|
ngx_feature_incs="#include <string.h>"
|
|
ngx_feature_libs=
|
|
ngx_feature_test="char buf[1024]; long n; n = strerror_r(1, buf, 1024);
|
|
if (n < 0 || n > 1024) return 1;"
|
|
. auto/feature
|
|
|
|
|
|
# GNU style strerror_r() returns not length, but pointer
|
|
|
|
ngx_feature="gnu style strerror_r()"
|
|
ngx_feature_name="NGX_HAVE_GNU_STRERROR_R"
|
|
ngx_feature_run=yes
|
|
ngx_feature_incs="#include <string.h>"
|
|
ngx_feature_libs=
|
|
ngx_feature_test="char buf[1024]; long n; n = strerror_r(1, buf, 1024);
|
|
if (n >= 0 && n < 1024) return 1;"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="localtime_r()"
|
|
ngx_feature_name="NGX_HAVE_LOCALTIME_R"
|
|
ngx_feature_run=no
|
|
ngx_feature_incs="#include <time.h>"
|
|
ngx_feature_libs=
|
|
ngx_feature_test="struct tm t; time_t c=0; localtime_r(&c, &t)"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="posix_memalign()"
|
|
ngx_feature_name="NGX_HAVE_POSIX_MEMALIGN"
|
|
ngx_feature_run=no
|
|
ngx_feature_incs="#include <stdlib.h>"
|
|
ngx_feature_libs=
|
|
ngx_feature_test="void *p; int n; n = posix_memalign(&p, 4096, 4096)"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="memalign()"
|
|
ngx_feature_name="NGX_HAVE_MEMALIGN"
|
|
ngx_feature_run=no
|
|
ngx_feature_incs="#include <stdlib.h>"
|
|
ngx_feature_libs=
|
|
ngx_feature_test="void *p; p = memalign(4096, 4096)"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="sched_yield()"
|
|
ngx_feature_name="NGX_HAVE_SCHED_YIELD"
|
|
ngx_feature_run=no
|
|
ngx_feature_incs="#include <sched.h>"
|
|
ngx_feature_libs=
|
|
ngx_feature_test="sched_yield()"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="mmap(MAP_ANON|MAP_SHARED)"
|
|
ngx_feature_name="NGX_HAVE_MAP_ANON"
|
|
ngx_feature_run=yes
|
|
ngx_feature_incs="#include <sys/mman.h>"
|
|
ngx_feature_libs=
|
|
ngx_feature_test="void *p;
|
|
p = mmap(NULL, 4096, PROT_READ|PROT_WRITE,
|
|
MAP_ANON|MAP_SHARED, -1, 0);
|
|
if (p == MAP_FAILED) return 1;"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature='mmap("/dev/zero", MAP_SHARED)'
|
|
ngx_feature_name="NGX_HAVE_MAP_DEVZERO"
|
|
ngx_feature_run=yes
|
|
ngx_feature_incs="#include <sys/mman.h>
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>"
|
|
ngx_feature_libs=
|
|
ngx_feature_test='void *p; int fd;
|
|
fd = open("/dev/zero", O_RDWR);
|
|
p = mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
|
|
if (p == MAP_FAILED) return 1;'
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="System V shared memory"
|
|
ngx_feature_name="NGX_HAVE_SYSVSHM"
|
|
ngx_feature_run=yes
|
|
ngx_feature_incs="#include <sys/ipc.h>
|
|
#include <sys/shm.h>"
|
|
ngx_feature_libs=
|
|
ngx_feature_test="int id;
|
|
id = shmget(IPC_PRIVATE, 4096, (SHM_R|SHM_W|IPC_CREAT));
|
|
if (id == -1) return 1;
|
|
shmctl(id, IPC_RMID, NULL);"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="struct msghdr.msg_control"
|
|
ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL"
|
|
ngx_feature_run=no
|
|
ngx_feature_incs="#include <sys/socket.h>"
|
|
ngx_feature_libs=
|
|
ngx_feature_test="struct msghdr msg; msg.msg_control = NULL"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="ioctl(FIONBIO)"
|
|
ngx_feature_name="NGX_HAVE_FIONBIO"
|
|
ngx_feature_run=no
|
|
ngx_feature_incs="#include <sys/ioctl.h>
|
|
$NGX_INCLUDE_SYS_FILIO_H"
|
|
ngx_feature_libs=
|
|
ngx_feature_test="int i; i = FIONBIO"
|
|
. auto/feature
|
|
|
|
|
|
ngx_feature="struct tm.tm_gmtoff"
|
|
ngx_feature_name="NGX_HAVE_GMTOFF"
|
|
ngx_feature_run=no
|
|
ngx_feature_incs="#include <time.h>"
|
|
ngx_feature_libs=
|
|
ngx_feature_test="struct tm tm; tm.tm_gmtoff = 0"
|
|
. auto/feature
|