Mercurial > hg > nginx-quic
annotate auto/lib/perl/make @ 4914:dcb853acae97
Upstream: honor the "down" flag for a single server.
If an upstream block was defined with the only server marked as
"down", e.g.
upstream u {
server 127.0.0.1:8080 down;
}
an attempt was made to contact the server despite the "down" flag.
It is believed that immediate 502 response is better in such a
case, and it's also consistent with what is currently done in case
of multiple servers all marked as "down".
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 16 Nov 2012 12:18:05 +0000 |
parents | 95ce3172493e |
children | ae3ebf5ac8cd |
rev | line source |
---|---|
599 | 1 |
2 # Copyright (C) Igor Sysoev | |
4412 | 3 # Copyright (C) Nginx, Inc. |
599 | 4 |
5 | |
6 cat << END >> $NGX_MAKEFILE | |
7 | |
8 $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.so: \ | |
9 src/http/modules/perl/nginx.pm \ | |
10 src/http/modules/perl/nginx.xs \ | |
11 src/http/modules/perl/ngx_http_perl_module.h \ | |
12 $NGX_OBJS/src/http/modules/perl/Makefile | |
13 cp -p src/http/modules/perl/nginx.* $NGX_OBJS/src/http/modules/perl/ | |
14 | |
4841
95ce3172493e
Configure: fixed make macros to use parentheses instead of braces.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4740
diff
changeset
|
15 cd $NGX_OBJS/src/http/modules/perl && \$(MAKE) |
599 | 16 |
740
5187a63d9fca
force perl modules reinstallation after rebuilding
Igor Sysoev <igor@sysoev.ru>
parents:
681
diff
changeset
|
17 rm -rf $NGX_OBJS/install_perl |
5187a63d9fca
force perl modules reinstallation after rebuilding
Igor Sysoev <igor@sysoev.ru>
parents:
681
diff
changeset
|
18 |
599 | 19 |
601 | 20 $NGX_OBJS/src/http/modules/perl/Makefile: \ |
21 src/http/modules/perl/Makefile.PL \ | |
22 src/http/modules/perl/nginx.pm | |
599 | 23 cp -p src/http/modules/perl/nginx.* $NGX_OBJS/src/http/modules/perl/ |
24 cp -p src/http/modules/perl/typemap $NGX_OBJS/src/http/modules/perl/ | |
25 cp -p src/http/modules/perl/Makefile.PL $NGX_OBJS/src/http/modules/perl/ | |
26 | |
27 cd $NGX_OBJS/src/http/modules/perl \ | |
681 | 28 && NGX_PM_CFLAGS="\$(NGX_PM_CFLAGS) -g $NGX_CC_OPT" \ |
599 | 29 NGX_PCRE=$PCRE \ |
30 NGX_OBJS=$NGX_OBJS \ | |
4473
3b877a45d343
Fixed build with embedded perl and --with-openssl.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
31 NGX_OPENSSL=$OPENSSL \ |
599 | 32 $NGX_PERL Makefile.PL \ |
948
12077affd903
backout the r945: the nginx.pm could not be loaded at all,
Igor Sysoev <igor@sysoev.ru>
parents:
944
diff
changeset
|
33 LIB=$NGX_PERL_MODULES \ |
950
9581fba9ea12
fix for nginx.pm default installation
Igor Sysoev <igor@sysoev.ru>
parents:
948
diff
changeset
|
34 INSTALLSITEMAN3DIR=$NGX_PERL_MODULES_MAN |
599 | 35 |
36 END |