Nginxでのfcgiwrapの設定
code:console
sudo apt-get update
sudo apt-get install nginx fcgiwrap
code:conf
server {
listen 80;
# location, root, SCRIPT_FILENAME は実際に動かすURLとパスになるように設定
location ~ ^/cgi-bin/.*\.cgi$ {
root /path/to/your/cgi-directory;
gzip off;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_index index.cgi;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
code:console
sudo systemctl restart nginx
sudo systemctl restart fcgiwrap