Server Fault is a question and answer site for system and network administrators. 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
 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/         <Directory "/usr/lib/cgi-bin">                 AllowOverride None                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch                 Order allow,deny                 Allow from all         </Directory>

so i have a new virtual host set up @ /var/www2

i can access everything fine.

except when i navigate to /cgi-bin/

it throws 403 error.

share|improve this question
What are the permissions on the folder /var/www2? – racyclist Oct 15 '09 at 20:41
drwxrwxrwx 8 www-data www-data – asdfasdf Oct 15 '09 at 21:19

There could be 2 things going on here. If you are going to yourdomain/cgi-bin/ with nothing else after it, and have directory indexes turned off that is exactly what is supposed to happen without an index.html in the path. It can't show an index, because it doesn't exist, and you don't have permission to browse the contents.

If you are trying to hit a script directly yourdomain/cgi-bin/ and you are getting it, you need to add the execute bit on the scripts in there, and make sure the permissions are set so that the webserver can execute them.

share|improve this answer

Your Answer


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