Nginx-Perl


这是一款基本Nginx的修改版,它提供了更好的内置(嵌入)式的Perl支持,并无其它改动。

Full-featured perl support for nginx.
Nginx-perl completes original embedded perl with asynchronous capabilities and a few useful functions.
Features
- full official nginx perl API
- asynchronous connections (ngx_connector, ngx_reader, ngx_writer)
- timer (ngx_timer)
- SSL (ngx_ssl_handshaker)
- resolver (ngx_resolver)
- access handlers (perl_access)
- app handlers (perl_app)
- configuration level eval (perl_eval)
- perl_init_worker, perl_exit_worker handlers
- logging functions (ngx_log_*)
- client connection takeover for websockets, etc
原生的nginx并不支持动态语句的解析,它通过改良过的cgi方式来实现对后端动态语言的支持,像fastcgi、scgi、uwsgi。对于内嵌式的Perl支持,需要在其安装时指定相关的编译选项(虽然发行版本中提供有nginx-full、nginx-extras等包声称支持Perl,但测试后并不那么好,推荐使用编译方法)。
像'--with-http_perl_module'的编译开关,前提是系统中要有Perl的开发库(libperl-dev)。
checking for perl
+ perl version: v5.10.1 (*) built for i486-linux-gnu-thread-multi
+ perl interpreter multiplicity found
creating objs/Makefile
但nginx-perl提供更完整的Perl API、异步等支持,它的安装方法与nginx官方所使用的方法是一致的。
最新版本:1.8
项目主页:
http://zzzcpan.github.io/nginx-perl/
http://search.cpan.org/~zzz/

Full-featured perl support for nginx.
Nginx-perl completes original embedded perl with asynchronous capabilities and a few useful functions.
Features
- full official nginx perl API
- asynchronous connections (ngx_connector, ngx_reader, ngx_writer)
- timer (ngx_timer)
- SSL (ngx_ssl_handshaker)
- resolver (ngx_resolver)
- access handlers (perl_access)
- app handlers (perl_app)
- configuration level eval (perl_eval)
- perl_init_worker, perl_exit_worker handlers
- logging functions (ngx_log_*)
- client connection takeover for websockets, etc
原生的nginx并不支持动态语句的解析,它通过改良过的cgi方式来实现对后端动态语言的支持,像fastcgi、scgi、uwsgi。对于内嵌式的Perl支持,需要在其安装时指定相关的编译选项(虽然发行版本中提供有nginx-full、nginx-extras等包声称支持Perl,但测试后并不那么好,推荐使用编译方法)。
像'--with-http_perl_module'的编译开关,前提是系统中要有Perl的开发库(libperl-dev)。
checking for perl
+ perl version: v5.10.1 (*) built for i486-linux-gnu-thread-multi
+ perl interpreter multiplicity found
creating objs/Makefile
但nginx-perl提供更完整的Perl API、异步等支持,它的安装方法与nginx官方所使用的方法是一致的。
最新版本:1.8
项目主页:
http://zzzcpan.github.io/nginx-perl/
http://search.cpan.org/~zzz/