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 ??

1
  • 1
    please post your error log and be more precise what your are trying to accomplish.
    – Christian
    Jan 29, 2010 at 15:39

2 Answers 2

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/"

You must log in to answer this question.