Welcome! Log In Create A New Profile

Advanced

Разница между OK и DECLINED

Дмитрий Бежнар
January 26, 2011 05:12AM
Здравствуйте,

помогите разобраться между OK и DECLINED при возврате с perl.

Как я понимаю что при OK - останавливает выполнение, а DECLINED
продолжает выполнение.

Соотвественно:

локейшн

location / {
perl hello::handler;
. fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
}

и
sub handler {
my $r = shift;
$r->send_http_header("text/html");
$r->print("hello2!\n<br/>");

return OK;
}

должен отдать клиенту хело, а если вернуть DECLINED, то должен
выполнить fastcgi.

Но у меня не останавливается выполнение при OK.
Так и должно быть или ...

nginx version: nginx/0.8.53
built by gcc 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC)
TLS SNI support enabled
configure arguments: --user=nginx --group=nginx
--prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
--http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi
--http-scgi-temp-path=/var/lib/nginx/tmp/scgi
--pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx
--with-http_ssl_module --with-http_realip_module
--with-http_addition_module --with-http_xslt_module
--with-http_image_filter_module --with-http_geoip_module
--with-http_sub_module --with-http_dav_module --with-http_flv_module
--with-http_gzip_static_module --with-http_random_index_module
--with-http_secure_link_module --with-http_degradation_module
--with-http_stub_status_module --with-http_perl_module --with-mail
--with-file-aio --with-mail_ssl_module --with-ipv6 --with-cc-opt='-O2
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E



--
С уважением,
Дмитрий Бежнар

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Разница между OK и DECLINED

Дмитрий Бежнар January 26, 2011 05:12AM

Re: Разница между OK и DECLINED

Maxim Dounin January 26, 2011 06:44AM

Re: Разница между OK и DECLINED

Kirill A. Korinskiy January 26, 2011 01:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 170
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready