unable to find cgi-bin directory

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.

4

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like