attempt to invoke directory as script?

14,345

Solution 1

Change the ScriptAlias to an Alias.

Solution 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/"
Share:
14,345

Related videos on Youtube

Patrick R
Author by

Patrick R

I've been in the IT industry since 2000. I have a degree in physics but chose to make my career in IT. Currently I spend more time working with system security than writing code but when I have the time I enjoy perl, php and mysql. Currently working on: LAMP servers Postfix Windows Server 2008 Network Administration Security Administration Asterisk

Updated on September 17, 2022

Comments

  • Patrick R
    Patrick R almost 2 years
    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 ??

    • user2987902
      user2987902 over 14 years
      please post your error log and be more precise what your are trying to accomplish.