Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error: attempt to invoke directory as script

Status
Not open for further replies.

DeadelviS

Programmer
Oct 25, 2000
1
US
I'm trying to get index.cgi to be called when requesting just cgi-bin

instead I get "Forbidden
You don't have permission to access /cgi-bin/ on this server"

in the errorlog:
[Wed Oct 25 13:22:15 2000] [error] [client 134.216.191.61] attempt to invoke directory as script: /apps/apache/cgi-bin

The config appears to be right -- what am I missing / all other indexes, and CGIs work as expected.

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.php index.htm index.shtml
</IfModule>

ScriptAlias /cgi-bin/ &quot;/apps/apache/cgi-bin/&quot;
<Directory &quot;/apps/apache/cgi-bin&quot;>
AllowOverride None
Options Indexes
Order allow,deny
Allow from all
</Directory>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top