9

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.

8

On Ubuntu, the standard cgi-bin directory is /usr/lib/cgi-bin.

  • Can we create cgi-bin in /var/www?? – Sam007 May 22 '12 at 1:22
  • You can if you want. Just update your apache config to find it there. – tumbleweed May 22 '12 at 17:42
  • I am new to Ubuntu, could tell me how can i update apache config and what should i enter? – Sam007 May 22 '12 at 17:43
  • You'd change the ScriptAlias line in /etc/apache2/sites-available/default (or add one to applicable vhost) – tumbleweed May 23 '12 at 18:29
0

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

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.