2003-11-25 14:44:56 -06:00
|
|
|
|
2004-09-29 11:00:49 -05:00
|
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
|
|
|
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 09:58:06 -05:00
|
|
|
have=NGX_FREEBSD . auto/have_headers
|
2004-10-21 10:34:38 -05:00
|
|
|
|
2003-11-25 14:44:56 -06:00
|
|
|
CORE_INCS="$UNIX_INCS"
|
|
|
|
CORE_DEPS="$UNIX_DEPS $FREEBSD_DEPS"
|
2004-01-23 03:26:18 -06:00
|
|
|
CORE_SRCS="$UNIX_SRCS $FREEBSD_SRCS"
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_spacer='
|
|
|
|
'
|
2004-03-10 11:55:19 -06:00
|
|
|
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
# __FreeBSD_version and sysctl kern.osreldate are the best ways
|
|
|
|
# to determine whether some capability exists and is safe to use.
|
2006-09-06 14:07:31 -05:00
|
|
|
# __FreeBSD_version is used for the testing of the build environment.
|
2004-10-21 10:34:38 -05:00
|
|
|
# sysctl kern.osreldate is used for the testing of the kernel capabilities.
|
2004-02-17 11:53:12 -06:00
|
|
|
|
2003-11-25 14:44:56 -06:00
|
|
|
version=`grep "#define __FreeBSD_version" /usr/include/osreldate.h \
|
|
|
|
| sed -e 's/^.* \(.*\)$/\1/'`
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
osreldate=`/sbin/sysctl -n kern.osreldate`
|
|
|
|
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-02-24 11:31:46 -06:00
|
|
|
# setproctitle() in libutil
|
|
|
|
|
|
|
|
if [ \( $version -ge 500000 -a $version -lt 500012 \) \
|
|
|
|
-o $version -lt 410002 ]
|
|
|
|
then
|
|
|
|
echo " + setproctitle() in libutil"
|
|
|
|
|
|
|
|
CORE_LIBS="$CORE_LIBS -lutil"
|
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 09:58:06 -05:00
|
|
|
NGX_SETPROCTITLE_LIB="-lutil"
|
2004-02-24 11:31:46 -06:00
|
|
|
fi
|
|
|
|
|
2003-11-25 14:44:56 -06:00
|
|
|
# sendfile
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
if [ $osreldate -gt 300007 ]; then
|
2005-10-19 07:33:58 -05:00
|
|
|
echo " + sendfile() found"
|
2004-02-24 11:31:46 -06:00
|
|
|
|
2004-11-25 10:17:31 -06:00
|
|
|
have=NGX_HAVE_SENDFILE . auto/have
|
2003-11-25 14:44:56 -06:00
|
|
|
CORE_SRCS="$CORE_SRCS $FREEBSD_SENDFILE_SRCS"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# kqueue
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
if [ \( $osreldate -lt 500000 -a $osreldate -ge 410000 \) \
|
|
|
|
-o $osreldate -ge 500011 ]
|
2003-11-25 14:44:56 -06:00
|
|
|
then
|
2005-10-19 07:33:58 -05:00
|
|
|
echo " + kqueue found"
|
2004-02-24 11:31:46 -06:00
|
|
|
|
2004-11-25 10:17:31 -06:00
|
|
|
have=NGX_HAVE_KQUEUE . auto/have
|
|
|
|
have=NGX_HAVE_CLEAR_EVENT . auto/have
|
2003-11-25 14:44:56 -06:00
|
|
|
EVENT_MODULES="$EVENT_MODULES $KQUEUE_MODULE"
|
2004-03-30 00:27:36 -06:00
|
|
|
CORE_SRCS="$CORE_SRCS $KQUEUE_SRCS"
|
2004-02-02 15:19:52 -06:00
|
|
|
EVENT_FOUND=YES
|
2003-11-25 14:44:56 -06:00
|
|
|
fi
|
|
|
|
|
2005-02-16 07:40:36 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
NGX_KQUEUE_CHECKED=YES
|
|
|
|
|
2003-11-25 14:44:56 -06:00
|
|
|
|
|
|
|
# kqueue's NOTE_LAWAT
|
|
|
|
|
|
|
|
if [ \( $version -lt 500000 -a $version -ge 430000 \) \
|
|
|
|
-o $version -ge 500018 ]
|
|
|
|
then
|
2005-10-19 07:33:58 -05:00
|
|
|
echo " + kqueue's NOTE_LOWAT found"
|
2004-11-25 10:17:31 -06:00
|
|
|
have=NGX_HAVE_LOWAT_EVENT . auto/have
|
2004-02-02 15:19:52 -06:00
|
|
|
fi
|
|
|
|
|
2005-10-19 07:33:58 -05:00
|
|
|
# kqueue's EVFILT_TIMER
|
|
|
|
|
|
|
|
if [ \( $version -lt 500000 -a $version -ge 440001 \) \
|
|
|
|
-o $version -ge 500023 ]
|
|
|
|
then
|
|
|
|
echo " + kqueue's EVFILT_TIMER found"
|
|
|
|
have=NGX_HAVE_TIMER_EVENT . auto/have
|
|
|
|
fi
|
|
|
|
|
2004-02-02 15:19:52 -06:00
|
|
|
|
2004-07-05 01:55:54 -05:00
|
|
|
if [ $USE_THREADS = "rfork" ]; then
|
|
|
|
|
|
|
|
echo " + using rfork()"
|
|
|
|
|
2004-09-29 11:00:49 -05:00
|
|
|
# # kqueue's EVFILT_SIGNAL is safe
|
|
|
|
#
|
|
|
|
# if [ $version -gt 460101 ]; then
|
|
|
|
# echo " + kqueue's EVFILT_SIGNAL is safe"
|
2004-11-25 10:17:31 -06:00
|
|
|
# have=NGX_HAVE_SAFE_EVFILT_SIGNAL . auto/have
|
2004-09-29 11:00:49 -05:00
|
|
|
# else
|
|
|
|
# echo "$0: error: the kqueue's EVFILT_SIGNAL is unsafe on this"
|
|
|
|
# echo "FreeBSD version, so --with-threads=rfork could not be used"
|
|
|
|
# echo
|
|
|
|
#
|
|
|
|
# exit 1
|
|
|
|
# fi
|
2004-07-05 01:55:54 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2004-02-02 15:19:52 -06:00
|
|
|
if [ $EVENT_AIO = YES ]; then
|
2004-11-20 13:52:20 -06:00
|
|
|
if [ \( $version -lt 500000 -a $version -ge 430000 \) \
|
|
|
|
-o $version -ge 500014 ]
|
|
|
|
then
|
2004-11-25 10:17:31 -06:00
|
|
|
have=NGX_HAVE_AIO . auto/have
|
2004-11-20 13:52:20 -06:00
|
|
|
EVENT_MODULES="$EVENT_MODULES $AIO_MODULE"
|
|
|
|
CORE_SRCS="$CORE_SRCS $AIO_SRCS"
|
|
|
|
else
|
|
|
|
|
|
|
|
cat << END
|
|
|
|
|
|
|
|
$0: error: the kqueue does not support AIO on this FreeBSD version
|
|
|
|
|
|
|
|
END
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
fi
|
2003-11-25 14:44:56 -06:00
|
|
|
fi
|