Many thanks for this info. I wasn't aware of this, I can now look in the
right place .
Geoff.
"Harrie" <dinges_danges_donges.RemoveThis@hotmail.com> wrote in message
news:41227d2e$0$21106$e4fe514c@news.xs4all.nl...
> Geoff said the following on 17/08/2004 10:30:
>
> > I am running Apache 1.3.14 on Win 98. PHP & Perl are installed and are
> > running correctly.
> > The directory structure is C:/Perl C:/apache/www/cgi-bin
> > C:/apache/www/...<other files and directories>
>
> I have no experience with Apache on a Windows platform, but generally a
> CGI directory should not be part of the DocumentRoot. I couldn't find
> any documents explaining why, but it has to do with security. If I find
> them, I'll post them later.
>
> > I tried putting a file in the cgi-bin and then accessing it through IE6
> > using localhost/cgi-bin/.... I got the "Page cannot be found". I then
> > changed the directory name from cgi-bin to cgibin and went to
> > localhost/cgibin/... This time I could access the file OK.
>
> There's probably a ScriptAlias line in your httpd.conf pointing
> somewhere outside your DocumentRoot (like it should) and therefor your
> "upload.cgi" couldn't be found. When you changed your directory name to
> "cgibin" it's not matched by the ScriptAlias directive and therefor
> Apache looked in your DocumentRoot where you've made the directory. You
> probably could have figured this out by looking at the error logs.
> Anyway, for more details about ScriptAlias, see:
>
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs/mod/mod_alias.html#scriptalias</font" target="_blank">http://httpd.apache.org/docs/mod/mod_alias.html#scriptalias</font</a>>
>
> And you should probably read:
>
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs/howto/cgi.html</font" target="_blank">http://httpd.apache.org/docs/howto/cgi.html</font</a>>
>
> > Any help much appreciated.
>
> HTH
>
> --
> Regards
> Harrie<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: cgi-bin problem