Skip to content

Commit

Permalink
nginx-0.1.9-RELEASE import
Browse files Browse the repository at this point in the history
    *) Bugfix: the proxied request was sent without arguments if the
       request contains "//", "/./", "/../" or "%XX".

    *) Bugfix: the large compressed responses may be transferred not
       completely.

    *) Bugfix: the files bigger than 2G was not transferred on Linux that
       does not support sendfile64().

    *) Bugfix: while the build configuration on Linux the
       --with-poll_module parameter was required; the bug had appeared in
       0.1.8.
  • Loading branch information
igorsysoev committed Nov 25, 2004
1 parent 865a7de commit f690604
Show file tree
Hide file tree
Showing 97 changed files with 571 additions and 476 deletions.
14 changes: 7 additions & 7 deletions auto/cc/bcc
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ CFLAGS="$CFLAGS -q"


# precompiled headers
CORE_DEPS="$CORE_DEPS $OBJS/ngx_config.csm"
NGX_PCH="$OBJS/ngx_config.csm"
NGX_BUILD_PCH="-H=$OBJS/ngx_config.csm"
NGX_USE_PCH="-Hu -H=$OBJS/ngx_config.csm"
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.csm"
NGX_PCH="$NGX_OBJS/ngx_config.csm"
NGX_BUILD_PCH="-H=$NGX_OBJS/ngx_config.csm"
NGX_USE_PCH="-Hu -H=$NGX_OBJS/ngx_config.csm"


# Win32 GUI mode application
LINK="\$(CC) -laa"


# the resource file
NGX_RES="$OBJS/nginx.res"
NGX_RCC="brcc32 -fo$OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC"
NGX_RES="$NGX_OBJS/nginx.res"
NGX_RCC="brcc32 -fo$NGX_OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC"
# the pragma allows to link the resource file using bcc32 and
# to avoid the direct ilink32 calling and the c0w32.obj's WinMain/main problem
NGX_PRAGMA="#pragma resource \"$OBJS/nginx.res\""
NGX_PRAGMA="#pragma resource \"$NGX_OBJS/nginx.res\""


ngx_include_opt="-I"
Expand Down
10 changes: 5 additions & 5 deletions auto/cc/conf
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ fi
CFLAGS="$CFLAGS $NGX_CC_OPT"


if [ "$PLATFORM" != win32 ]; then
if [ "$NGX_PLATFORM" != win32 ]; then

if test -n "$NGX_LD_OPT"; then
ngx_feature=--with-ld-opt=\"$NGX_LD_OPT\"
ngx_feature_name="DUMMY"
ngx_feature_name=
ngx_feature_run=no
ngx_feature_incs=
ngx_feature_libs=
Expand All @@ -111,7 +111,7 @@ if [ "$PLATFORM" != win32 ]; then
fi

ngx_feature="gcc variadic macros"
ngx_feature_name="HAVE_GCC_VARIADIC_MACROS"
ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS"
ngx_feature_run=yes
ngx_feature_incs="#include <stdio.h>
#define var(dummy, args...) sprintf(args)"
Expand All @@ -123,7 +123,7 @@ if [ "$PLATFORM" != win32 ]; then


ngx_feature="C99 variadic macros"
ngx_feature_name="HAVE_C99_VARIADIC_MACROS"
ngx_feature_name="NGX_HAVE_C99_VARIADIC_MACROS"
ngx_feature_run=yes
ngx_feature_incs="#include <stdio.h>
#define var(dummy, ...) sprintf(__VA_ARGS__)"
Expand All @@ -135,7 +135,7 @@ if [ "$PLATFORM" != win32 ]; then


# ngx_feature="inline"
# ngx_feature_name="DUMMY"
# ngx_feature_name=
# ngx_feature_run=no
# ngx_feature_incs="int inline f(void) { return 1 }"
# ngx_feature_libs=
Expand Down
2 changes: 1 addition & 1 deletion auto/cc/icc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CFLAGS="$CFLAGS -Ob2"
IPO="-ipo -ipo_obj"
CFLAGS="$CFLAGS $IPO"
CORE_LINK="$CORE_LINK $IPO"
CORE_LINK="$CORE_LINK -opt_report_file=$OBJS/opt_report_file"
CORE_LINK="$CORE_LINK -opt_report_file=$NGX_OBJS/opt_report_file"

case $CPU in
pentium)
Expand Down
10 changes: 5 additions & 5 deletions auto/cc/msvc
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ CORE_LINK="$CORE_LINK -debug -debugtype:coff"

# precompiled headers
if [ $NGX_CC_NAME != msvc7 ]; then
CORE_DEPS="$CORE_DEPS $OBJS/ngx_config.pch"
NGX_PCH="$OBJS/ngx_config.pch"
NGX_BUILD_PCH="-Ycngx_config.h -Fp$OBJS/ngx_config.pch"
NGX_USE_PCH="-Yungx_config.h -Fp$OBJS/ngx_config.pch"
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.pch"
NGX_PCH="$NGX_OBJS/ngx_config.pch"
NGX_BUILD_PCH="-Ycngx_config.h -Fp$NGX_OBJS/ngx_config.pch"
NGX_USE_PCH="-Yungx_config.h -Fp$NGX_OBJS/ngx_config.pch"
fi


# the resource file
NGX_RES="$OBJS/nginx.res"
NGX_RES="$NGX_OBJS/nginx.res"
NGX_RCC="rc -fo$NGX_RES \$(CORE_INCS) $NGX_WIN32_RC"
CORE_LINK="$NGX_RES $CORE_LINK"

Expand Down
11 changes: 6 additions & 5 deletions auto/cc/owc
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ CFLAGS="$CFLAGS -zq"


# the precompiled headers
CORE_DEPS="$CORE_DEPS $OBJS/ngx_config.pch"
NGX_PCH="$OBJS/ngx_config.pch"
NGX_BUILD_PCH="-fhq=$OBJS/ngx_config.pch"
NGX_USE_PCH="-fh=$OBJS/ngx_config.pch"
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.pch"
NGX_PCH="$NGX_OBJS/ngx_config.pch"
NGX_BUILD_PCH="-fhq=$NGX_OBJS/ngx_config.pch"
NGX_USE_PCH="-fh=$NGX_OBJS/ngx_config.pch"


LINK="\$(CC)"
Expand All @@ -76,7 +76,8 @@ CORE_LINK="$CORE_LINK -l=nt_win"


# the resource file
NGX_RCC="wrc \$(CORE_INCS) -fo=$OBJS/nginx.res $NGX_WIN32_RC $OBJS/nginx.exe"
NGX_RCC="wrc \$(CORE_INCS) -fo=$NGX_OBJS/nginx.res "
NGX_RCC="$NGX_RCC $NGX_WIN32_RC $NGX_OBJS/nginx.exe"


ngx_include_opt="-i="
Expand Down
24 changes: 12 additions & 12 deletions auto/configure
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@
. auto/init
. auto/sources

test -d $OBJS || mkdir $OBJS
test -d $NGX_OBJS || mkdir $NGX_OBJS

echo > $NGX_AUTO_HEADERS_H
echo > $NGX_AUTO_CONFIG_H
echo > $NGX_AUTOCONF_ERR


if [ $DEBUG = YES ]; then
if [ $NGX_DEBUG = YES ]; then
have=NGX_DEBUG . auto/have
fi


if [ "$PLATFORM" != win32 ]; then
if [ "$NGX_PLATFORM" != win32 ]; then
. auto/headers
fi

. auto/cc/conf
. auto/os/conf

if [ "$PLATFORM" != win32 ]; then
if [ "$NGX_PLATFORM" != win32 ]; then
. auto/threads
fi

Expand All @@ -37,21 +37,21 @@ fi
. auto/lib/make
. auto/install

if [ "$PLATFORM" != win32 ]; then
if [ "$NGX_PLATFORM" != win32 ]; then
. auto/unix
fi

# STUB
. auto/stubs

have=NGX_PREFIX value="\"$PREFIX/\"" . auto/define
have=NGX_SBIN_PATH value="\"$SBIN_PATH\"" . auto/define
have=NGX_CONF_PATH value="\"$CONF_PATH\"" . auto/define
have=NGX_PID_PATH value="\"$PID_PATH\"" . auto/define
if [ ".$ERROR_LOG_PATH" != "." ]; then
have=NGX_ERROR_LOG_PATH value="\"$ERROR_LOG_PATH\"" . auto/define
have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
have=NGX_SBIN_PATH value="\"$NGX_SBIN_PATH\"" . auto/define
have=NGX_CONF_PATH value="\"$NGX_CONF_PATH\"" . auto/define
have=NGX_PID_PATH value="\"$NGX_PID_PATH\"" . auto/define
if test -n "$NGX_ERROR_LOG_PATH"; then
have=NGX_ERROR_LOG_PATH value="\"$NGX_ERROR_LOG_PATH\"" . auto/define
fi
have=NGX_HTTP_LOG_PATH value="\"$HTTP_LOG_PATH\"" . auto/define
have=NGX_HTTP_LOG_PATH value="\"$NGX_HTTP_LOG_PATH\"" . auto/define

have=NGX_USER value="\"$NGX_USER\"" . auto/define
have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define
Expand Down
2 changes: 1 addition & 1 deletion auto/endianess
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ eval "${CC} -o $NGX_AUTOTEST $NGX_AUTOTEST.c >> $NGX_ERR 2>&1"
if [ -x $NGX_AUTOTEST ]; then
if $NGX_AUTOTEST 2>&1 > /dev/null; then
echo " little endianess"
have=HAVE_LITTLE_ENDIAN . auto/have
have=NGX_HAVE_LITTLE_ENDIAN . auto/have
else
echo " big endianess"
fi
Expand Down
14 changes: 1 addition & 13 deletions auto/feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ END
ngx_found=no

if test -n "$ngx_feature_name"; then
ngx_have_feature=`echo NGX_$ngx_feature_name | tr '[a-z]' '[A-Z]'`
# STUB
ngx_have_feature0=`echo HAVE_$ngx_feature_name | tr '[a-z]' '[A-Z]'`
ngx_have_feature=`echo $ngx_feature_name | tr '[a-z]' '[A-Z]'`
fi

cat << END > $NGX_AUTOTEST.c
Expand Down Expand Up @@ -51,11 +49,6 @@ if [ -x $NGX_AUTOTEST ]; then
have=$ngx_have_feature . auto/have
fi

#STUB
if test -n "$ngx_feature_name"; then
have=$ngx_have_feature0 . auto/have
fi

else
echo " found but is not working"
fi
Expand All @@ -68,11 +61,6 @@ if [ -x $NGX_AUTOTEST ]; then
have=$ngx_have_feature . auto/have
fi

#STUB
if test -n "$ngx_feature_name"; then
have=$ngx_have_feature0 . auto/have
fi

fi

else
Expand Down
43 changes: 0 additions & 43 deletions auto/func

This file was deleted.

13 changes: 6 additions & 7 deletions auto/init
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ NGX_AUTOTEST=$NGX_OBJS/autotest
NGX_AUTOCONF_ERR=$NGX_OBJS/autoconf.err

# STUBs
OBJS=$NGX_OBJS
NGX_ERR=$OBJS/autoconf.err
MAKEFILE=$OBJS/Makefile
NGX_ERR=$NGX_OBJS/autoconf.err
MAKEFILE=$NGX_OBJS/Makefile


NGX_PCH=
Expand Down Expand Up @@ -54,9 +53,9 @@ clean:
rm -rf Makefile $NGX_OBJS

upgrade:
$SBIN_PATH -t
kill -USR2 \`cat $PID_PATH\`
$NGX_SBIN_PATH -t
kill -USR2 \`cat $NGX_PID_PATH\`
sleep 1
test -f $PID_PATH.newbin
kill -WINCH \`cat $PID_PATH\`
test -f $NGX_PID_PATH.newbin
kill -WINCH \`cat $NGX_PID_PATH\`
END
40 changes: 20 additions & 20 deletions auto/install
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,40 @@
# Copyright (C) Igor Sysoev


cat << END >> $MAKEFILE
cat << END >> $NGX_MAKEFILE

install:
test -d $PREFIX || mkdir -p $PREFIX
test -d $NGX_PREFIX || mkdir -p $NGX_PREFIX

test -d `dirname $SBIN_PATH` || mkdir -p `dirname $SBIN_PATH`
test ! -f $SBIN_PATH || mv $SBIN_PATH $SBIN_PATH.old
cp $OBJS/nginx $SBIN_PATH
test -d `dirname $NGX_SBIN_PATH` || mkdir -p `dirname $NGX_SBIN_PATH`
test ! -f $NGX_SBIN_PATH || mv $NGX_SBIN_PATH $NGX_SBIN_PATH.old
cp $NGX_OBJS/nginx $NGX_SBIN_PATH

test -d `dirname $CONF_PATH` || mkdir -p `dirname $CONF_PATH`
test -d `dirname $NGX_CONF_PATH` || mkdir -p `dirname $NGX_CONF_PATH`

cp conf/koi-win `dirname $CONF_PATH`
cp conf/koi-win `dirname $NGX_CONF_PATH`

test -f `dirname $CONF_PATH`/mime.types || \
cp conf/mime.types `dirname $CONF_PATH`/mime.types
cp conf/mime.types `dirname $CONF_PATH`/mime.types.default
test -f `dirname $NGX_CONF_PATH`/mime.types || \
cp conf/mime.types `dirname $NGX_CONF_PATH`/mime.types
cp conf/mime.types `dirname $NGX_CONF_PATH`/mime.types.default

test -f $CONF_PATH || cp conf/nginx.conf $CONF_PATH
cp conf/nginx.conf `dirname $CONF_PATH`/nginx.conf.default
test -f $NGX_CONF_PATH || cp conf/nginx.conf $NGX_CONF_PATH
cp conf/nginx.conf `dirname $NGX_CONF_PATH`/nginx.conf.default

test -d `dirname $PID_PATH` || mkdir -p `dirname $PID_PATH`
test -d `dirname $NGX_PID_PATH` || mkdir -p `dirname $NGX_PID_PATH`

test -d `dirname $HTTP_LOG_PATH` || mkdir -p `dirname $HTTP_LOG_PATH`
test -d `dirname $NGX_HTTP_LOG_PATH` || \
mkdir -p `dirname $NGX_HTTP_LOG_PATH`

test -d $PREFIX/html || cp -r html $PREFIX

#test -d $PREFIX/temp || mkdir -p $PREFIX/temp
test -d $NGX_PREFIX/html || cp -r html $NGX_PREFIX
END


if [ ".$ERROR_LOG_PATH" != "." ]; then
cat << END >> $MAKEFILE
if test -n "$NGX_ERROR_LOG_PATH"; then
cat << END >> $NGX_MAKEFILE

test -d `dirname $ERROR_LOG_PATH` || mkdir -p `dirname $ERROR_LOG_PATH`
test -d `dirname $NGX_ERROR_LOG_PATH` || \
mkdir -p `dirname $NGX_ERROR_LOG_PATH`
END

fi
Loading

0 comments on commit f690604

Please sign in to comment.