httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
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/bincimap.org/www/dl/"
>         <Directory "/usr/local/apache/domains/bincimap.org/www/dl">
>                 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 64.83.2.146] attempt to
> invoke directory as script:
> /usr/local/apache/domains/bincimap.org/www/dl

> The script works fine if it is called directly, bincimap.org/dl/index.cgi,
> but I would expect the DirectoryIndex directive to allow the user to specify
> just bincimap.org/dl/ 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
add
SetHandler cgi-script
inside the <Directory> block.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message