researchcloud-items

Installation scripts for SURF ResearchCloud catalog components

View the Project on GitHub UtrechtUniversity/researchcloud-items

Role nginx_fastcgi

back to index

Summary

Adds support for execution of shell script with the nginx webserver.

Requires

Workspace that has nginx installed.

Description

Installs the fcgiwrap package and creates a /var/www/cgi-bin directory where scripts can be placed. Installs an example script within this directory.

An example nginx configuration to execute a script “hello” at location /hello would be:

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

Variables

n/a

See also

History

2022 Written by Ahmad Hesam (SURF) and Ton Smeele (Utrecht University)

back to index