私は初心者で、Windows 7 64 ビットで Strawberry 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
Dancer Deplyoment ガイドに記載されているようにネイティブ CGI を使用すると、[~ 400ms] の使用と比較してレンダリングが非常に遅くなります [~ 4s] plackup app.pl
。
以下は、私の作業中のネイティブ 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]
どうもありがとうございました。