I am following this tutorial and it is asking me to save proxy.cgi in the /var/www/cgi-bin directory.
There is no directory in www with the name cgi-bin. Do I need to create a directory there? I think the tutorial's guidance is for a RPM-based linux distribution, but I may be wrong.
2 Answers
On Ubuntu, the standard cgi-bin directory is /usr/lib/cgi-bin.
Most files should not be executed as CGI scripts. This would be very dangerous. CGI scripts should kept in a directory separate from and outside your DocumentRoot, and only this directory should have the ExecCGI option set. This is the default, and the default location for CGI scripts is /usr/lib/cgi-bin.