Apache的Perl支持模块-mod_perl
mod_perl是Apache服务器中内置了的Perl解释器,可以让Perl脚本更加快速地在apache内部地址上执行,不仅可用于开发网站还可用于控制Web服务器的行为。采用C语言开发并在Apache License 2.0协议下授权。mod_perl是一个apache模块,它将 perl 程序语言封装在 Apache web 服务器内,在 mod_perl 下,CGI 脚本比平常运行快几十倍。另外可将数据库与web服务器集成在一起,用Perl编写Apache模块,在Apache的配置文件里面插入 Perl 代码,甚至以 server-side include 方式使用 Perl。在 mod_perl 下,Apache不仅仅是一个web 服务器,而变成了一个功能完善的程序平台。
mod_perl is an optional module for the Apache HTTP server. It embeds a Perl interpreter into the Apache server, so that dynamic content produced by Perl scripts can be served in response to incoming requests, without the significant overhead of re-launching the Perl interpreter for each request. As Lincoln Stein defined mod_perl in his words:
“mod_perl is more than CGI scripting on steroids. It is a whole new way to create dynamic content by utilizing the full power of the Apache web server to create stateful sessions, customized user authentication systems, smart proxies and much more. Yet, magically, your old CGI scripts will continue to work and work very fast indeed. With mod_perl you give up nothing and gain so much!”
mod_perl can emulate a Common Gateway Interface (CGI) environment, so that existing Perl CGI scripts can benefit from the performance boost without having to be re-written.
Unlike CGI (and most other web application environments), mod_perl provides complete access to the Apache API, allowing programmers to write handlers for all phases in the Apache request cycle, manipulate Apache's internal tables and state mechanisms, share data between Apache processes or threads, alter or extend the Apache configuration file parser, and add Perl code to the configuration file itself, among other things.
最新版本:2.1
主要更新:
添加对Perl 5.22.x的支持
修复非线程Perl 5.22.x构建和测试。 [Klaus S. Madsen
当modperl用gcc 5或clang建立时,自动选择适当的c89选项
MP_vtbl_env和MP_vtbl_envelem作为'extern'来修复链接器OSX/Darwin的错误
项目主页:http://perl.apache.org/