私はこれを見つけました: https ://github.com/ruudud/cgi それは言う:
===
On Ubuntu: apt-get install nginx fcgiwrap
On Arch: pacman -S nginx fcgiwrap
Example Nginx config (Ubuntu: /etc/nginx/sites-enabled/default):
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/access.log;
location / {
root /srv/static;
autoindex on;
index index.html index.htm;
}
location ~ ^/cgi {
root /srv/my_cgi_app;
rewrite ^/cgi/(.*) /$1 break;
include fastcgi_params;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param SCRIPT_FILENAME /srv/my_cgi_app$fastcgi_script_name;
}
}
ルート行とfastcgi_param行を、CGIスクリプトを含むディレクトリ(このリポジトリのcgi-bin / dirなど)に変更します。
コントロールフリークでfcgiwrapを手動で実行している場合は、それに応じてfastcgi_passを変更してください。例にリストされているパスは、すぐに使用できるfcgiwrapセットアップを使用する場合のUbuntuのデフォルトです。
===
私はそれを試してみようとしています。