httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cory Wright <>
Subject [users@httpd] attempt to invoke directory as script
Date Fri, 21 Mar 2003 16:58:23 GMT

I have searched the MARC archives, I have scoured google, and I have searched
the Gmane archives for this list.  There have been several people who have
gotten the same error message, but their problems were apparently different
than the ones I am experiencing.

The details:

I am setting up a new virtual domain ( that needs to have CGI
abilities within certain subdirectories.  The directory needs
to be able to default to the DirectoryIndex of index.cgi, but for some reason
it doesn't appear to be doing that.  Here is a snip from the httpd.conf file, 
with only the admin email address edited:

        DocumentRoot /usr/local/apache/domains/
        ErrorLog /usr/local/apache/logs/
        DirectoryIndex index.html index.php index.htm index.shtml index.cgi 
        CustomLog /usr/local/apache/logs/ combined
        <Directory "/usr/local/apache/domains/">
                Options +Includes
                AddType text/html .shtml
                AddHandler server-parsed .shtml
        ScriptAlias /dl/ "/usr/local/apache/domains/"
        <Directory "/usr/local/apache/domains/">
                AllowOverride None
                DirectoryIndex index.cgi
                Options +ExecCGI +Indexes +FollowSymLinks
                Order allow,deny
                Allow from all
        ScriptAlias /cgi-bin/ "/usr/local/apache/domains/"
        <Directory "/usr/local/apache/domains/">
                AllowOverride None
                Options +ExecCGI +FollowSymLinks
                Order allow,deny
                Allow from all

Finally, here is an entry in the error log (not wrapped):

[Fri Mar 21 11:25:15 2003] [error] [client] attempt to invoke directory as script:

The script works fine if it is called directly,, 
but I would expect the DirectoryIndex directive to allow the user to specify
just and everything work.

Any suggestions would be greatly appreciated.


Cory Wright
Stand Blue Technology

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message