From ee04c495b5bebcac2453b5d99c0c97de08b9f949 Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Tue, 21 Mar 2017 18:44:01 +0100 Subject: [PATCH] added support for noweb/cgi-bin --- etc/nginx/sites-available/default | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/etc/nginx/sites-available/default b/etc/nginx/sites-available/default index 3733cac..6a823b0 100644 --- a/etc/nginx/sites-available/default +++ b/etc/nginx/sites-available/default @@ -25,6 +25,17 @@ server { alias /var/www/static; autoindex on; } + + # /cgi-bin/foo.cgi ==> /media/floppy/noweb/cgi-bin/foo.cgi + location ~ ^/cgi-bin/.*\.cgi$ { + root /media/floppy/noweb/cgi-bin; + rewrite ^/cgi-bin/(.*)\.cgi /$1.cgi break; + include /etc/nginx/fastcgi_params; + fastcgi_pass unix:/var/run/fcgiwrap.socket; + fastcgi_param SCRIPT_FILENAME /media/floppy/noweb/cgi-bin$fastcgi_script_name; + } + + }