added support for noweb/cgi-bin

master
Michael Murtaugh 8 years ago
parent 3bdd2ee6a1
commit ee04c495b5

@ -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;
}
}

Loading…
Cancel
Save