httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] attempt to invoke directory as script
Date Fri, 21 Mar 2003 17:10:32 GMT

On Fri, 21 Mar 2003, Cory Wright wrote:
>         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
>         </Directory>

> 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:
> /usr/local/apache/domains/

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

DirectoryIndex does not work inside ScriptAliase'd directories.

But there is an easy workaround.  Simply replace the ScriptAlias with the
equivalent Alias (actually, just remove "Script" on the front) and then
SetHandler cgi-script
inside the <Directory> block.


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