Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 5 down vote accepted

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

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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