$ sudo apt-get install nginx fcgiwrap libgcgi-perl
例)/var/www/vhosts/example.com/cgi-bin以下のperlファイルをhttp://example.com/cgi-binで動かす場合
location /cgi-bin/ {
gzip off;
root /var/www/vhosts/example.com/;
include fastcgi_params;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_index index.pl;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
起動
$ /etc/init.d/fcgiwrap start
$ /etc/init.d/nginx start