> -----Original Message-----
> From: F. Bos [mailto:[EMAIL PROTECTED]
> Sent: Mittwoch, 31. August 2005 10:50
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] CGI executing for a certain directory
> 
> 
>.. when I request a cgi executable that's in 
> the directory
> "C:/apache/htdocs/test/cgi-bin/" the webserver attempts to 
> view the file
> instead of executing it.

How do you request it? If you access it as a file, you're just using your 
browser as a directory-browser and so bypassing apache. To get apache to fetch 
the file you need to use HTTP so you should request: 
http://your-server/cgi-bin/program-name


>  When
> I configure cgi execution for a certain directory this has 
> nothing to do
> with my scriptalias or does it?

Oh yes it does! The ScriptAlias tells apache that the directory contains 
executables and so it will *only* execute files found there and *never* display 
them.

 So you absolutely need:

        ScriptAlias /cgi-bin/ C:/apache/htdocs/test/cgi-bin/

If you just have one program in a directory which also has static content, you 
can define it as executable using the ExecCGI/AddHandler method but that's not 
what you've got, I think.

Read over the tutorial again to get the difference: 
http://httpd.apache.org/docs/2.0/howto/cgi.html

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.  

> 
> Thanks in advance!!
> 
>     <Directory "C:/apache/htdocs/test/cgi-bin/">
>       AllowOverride None        
>       Options +ExecCGI
>       Order allow,deny
>       Allow from all
>     </Directory>
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to