使用FastCGI+;Windows 7上的Apache2.4
我是一名新手,正在Windows 7 64位上使用草莓Perl v5.20 Dancer2框架部署一个快速应用程序使用FastCGI+;Windows 7上的Apache2.4,apache,perl,windows-7-x64,dancer,mod-fastcgi,Apache,Perl,Windows 7 X64,Dancer,Mod Fastcgi,我是一名新手,正在Windows 7 64位上使用草莓Perl v5.20 Dancer2框架部署一个快速应用程序 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[~400ms]相比,使用Dancer Deplyment指南中提到的本机CGI,渲染速
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
[~400ms]相比,使用Dancer Deplyment指南中提到的本机CGI,渲染速度非常慢[~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>
服务器名xyz
DocumentRoot C:/xampp/cgi-bin/xyz/public
服务器管理员you@xyz.com
不允许超限
选项+执行CGI-多视图+符号链接所有者匹配
命令允许,拒绝
通融
AddHandler cgi script.cgi
重新启动发动机
重写cond%{REQUEST_FILENAME}-F
重写规则^(.*)$/dispatch.cgi$1[QSA,L]
由于我的应用程序需要同时访问,为了提高性能,我计划转向mod_fastcgi
#LoadModule fastcgi_module modules/mod_fastcgi.so
#<IfModule mod_fastcgi>
# AddHandler fastcgi-script .fcgi
#</IfModule>
#RewriteRule ^(.*)$ /dispatch.fcgi$1 [QSA,L]
#加载模块fastcgi_模块模块/mod_fastcgi.so
#
#AddHandler fastcgi script.fcgi
#
#重写规则^(.*)$/dispatch.fcgi$1[QSA,L]
非常感谢您的帮助。这似乎太明显了,但您的apache代码已被删除,您需要删除“#”以使其正常工作大多数Dancer核心人员不会频繁出现堆栈溢出。你最好的选择是前往irc.perl.org上的#dancer并在那里提问,或者向他们指出这个问题。那里会有友好的人向你解释。谢谢@simbabque。让我试着在那个链接上发帖。当然,在使用相同的链接之前,#被删除了。但那没用。