Autonomía digital y tecnológica

Código e ideas para una internet distribuida

Linkoteca. fastcgi


root@www:~# apt -y install fcgiwrap

root@www:~# vi /etc/nginx/fcgiwrap.conf
# create new
# for example, enable CGI under [/cgi-bin]

location /cgi-bin/ {
gzip off;
root /var/www;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

root@www:~# mkdir /var/www/cgi-bin

root@www:~# chmod 755 /var/www/cgi-bin
# add settings into [server] section of a site definition

root@www:~# vi /etc/nginx/sites-available/default

server {
.....
.....
include fcgiwrap.conf;
}

root@www:~# systemctl enable fcgiwrap

root@www:~# systemctl reload ngin