From 1576343a9fa960d3c08fbd06f8d8733d1134ed9f Mon Sep 17 00:00:00 2001 From: fro Date: Fri, 31 Oct 2025 19:29:12 -0500 Subject: [PATCH] + fcgiwrap.conf --- cfg/ngx/fcgiwrap.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cfg/ngx/fcgiwrap.conf diff --git a/cfg/ngx/fcgiwrap.conf b/cfg/ngx/fcgiwrap.conf new file mode 100644 index 0000000..530b89e --- /dev/null +++ b/cfg/ngx/fcgiwrap.conf @@ -0,0 +1,20 @@ +# Include this file on your nginx.conf to support debian cgi-bin scripts using +# fcgiwrap +location /cgi-bin/ { + # Disable gzip (it makes scripts feel slower since they have to complete + # before getting gzipped) + gzip off; + + # Set the root to /usr/lib (inside this location this means that we are + # giving access to the files under /usr/lib/cgi-bin) + root /usr/lib; + + # Fastcgi socket + fastcgi_pass unix:/var/run/fcgiwrap.socket; + + # Fastcgi parameters, include the standard ones + include /etc/nginx/fastcgi_params; + + # Adjust non standard parameters (SCRIPT_FILENAME) + fastcgi_param SCRIPT_FILENAME /usr/lib$fastcgi_script_name; +}