I am setting up fastcgi on nginx. I sort of have it working. Inside my location block if i have factcgi_param SCRIPT_FILENAME /var/www/cgi-bin/hello.cgi;
it works. However I don't want to hard code the link.
Setting fastcgi with the below configuration
factcgi_param SCRIPT_FILENAME /var/www/cgi-bin/$fastcgi_script_name;
I get the following error
cannot get script name are document_root and script_name or (script_file) set and is the script executable?
while reading response header upstream from upstream. client 127.0.0.1,
server _, request "get /cgi-bin/hello.cgi"
On the webpage I get 403 Forbidden
hello.cgi
is executable and works when I hard code it.
My fastcgi_params