欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
FastCGI
来自开放百科 - 灰狐
Using FastCGI with Rails
$ /etc/init.d/httpd stop $ sudo apt-get install libfcgi-dev $ sudo gem install fcgi
FreeBSD user
$ sudo gem install fcgi -- --with-fcgi-include=/usr/local/include --with-fcgi-lib=/usr/local/lib
apache httpd. conf
LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi </IfModule>
Gentoo users
emerge fcgi ruby-fcgi mod_fastcgi
$ apache2ctl reload
public/dispatch.fcgi
charge require 'fcgi' to require 'rubygems' require_gem 'fcgi' $ sudo gem update
public/.htaccess
charge RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L] to RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]
分享您的观点