我是一个新手,正在使用草莓 Perl v5.20 Dancer2 框架在 Windows 7 64 位上部署一个快速应用程序。
C:\xampp\apache\bin>httpd.exe -v
Server version: Apache/2.4.17 (Win32)
Apache Lounge VC11 Server built: Oct 13 2015 10:54:13
plackup app.pl
使用 Dancer Deplyoment 指南中提到的本机 CGI,与使用[~ 400ms]相比,渲染非常慢 [~ 4s ]
下面是我工作的本机 cgi apache 配置:
<VirtualHost *:80>
ServerName xyz
DocumentRoot C:/xampp/cgi-bin/xyz/public
ServerAdmin you@xyz.com
<Directory "C:/xampp/cgi-bin/xyz/public">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
AddHandler cgi-script .cgi
</Directory>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /dispatch.cgi$1 [QSA,L]
</VirtualHost>
由于我的应用程序需要同时访问并提高性能,我计划转向 mod_fastcgi。
上述配置或 httpd.conf 中是否有任何更改可以帮助我提高性能?
windows 的任何其他多进程/线程替代方案?
我已经搜索了很多并放弃了。需要您帮助找出支持 Apache 2.4 的 windows 的 mod_fastcgi 二进制文件。
我试过在这个位置使用那个,但它似乎是为 Apache 2.2 http://strawberryperl.com/package/kmx/mod_fastcgi/ 重新启动 apache 不适用于以下更改。
#LoadModule fastcgi_module modules/mod_fastcgi.so #<IfModule mod_fastcgi> # AddHandler fastcgi-script .fcgi #</IfModule> #RewriteRule ^(.*)$ /dispatch.fcgi$1 [QSA,L]
非常感谢你的帮助。