Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Tag: cgi
Need help on Nginx CGI Configuration
I need to set the nginx configurations such that the URL “http://host/cgi-bin/hw.sh/some/path/to/data/” should trigger the shell script “hw.sh” present under path “/usr/lib/cgi-bin/”. Now, according to the instructions mentioned in page https://www.howtoforge.com/serving-cgi-scripts-with-nginx-on-debian-squeeze-ubuntu-11.04-p3, we need to set the configurations under a “.vhost” file. But I have a default file already present under path “/etc/nginx/sites-available/default” instead of a .vhost file. And when I
CGI script not executing bash commands such as ‘CP’
I have a web server (apache2) set up to execute files with a .cgi file extension. This works for some commands. However, I need it to copy the file /var/www/on.html to the location of /var/www/a1.html. I am using Debian Linux. The script is as follows: I am using cp to copy a html webpage with a green background to replace
How to handle 0 Content length in POST request in CGI?
In my CGI application something happens when I pass a 0 content length POST request. Here is my code: I test my application using the Http-Requester plugin for FireFox, when I pass a POST request with no data, the application seems like it enters a loop and no response. If I pass a GET request, the code works fine because
How to invoke webbrowser from cgi script?
My cgi script is as follows on a Linux system with Firefox and Chrome browsers: Assume that it is a PDF file only. I need to display image files also in a browser. Not able to trace the bug. Answer I edited my code to work this way: