0
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Directory "/var/www/cgi-bin">
        AllowOverride None
        AddHandler cgi-script pl cgi
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
</Directory>

what did i do wrong ??

Patrick R
  • 2,945
  • 1
  • 19
  • 27

2 Answers2

2

Change the ScriptAlias to an Alias.

2

This means that you tried to invoke the URL ending with http://example.com/cgi-bin/ in the browser's location bar without specifying an actual CGI script to execute (i.e.: ../cgi-bin/script.cgi). Your code indicates no problem at all.

Though you might want to enclose the parameters to your ScriptAlias directive within double quotation marks as shown below:

ScriptAlias "/cgi-bin/" "/var/www/cgi-bin/"
kasperd
  • 30,455
  • 17
  • 76
  • 124
miklosq
  • 21
  • 3