You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "F. Bos" <f....@chello.nl> on 2005/08/31 10:49:53 UTC
[users@httpd] CGI executing for a certain directory
Hi,
I've got a question that should be simple for an advanced Apache user. I'm
trying to set up a certain directory so that cgi-bin apps can be run from
there. The Apache manual is quite clear on this but I can't make it work.
What am I doing wrong? I use the config lines at the bottom of this message
to set the directory up for cgi-bin executing. I saved and restarted the
Apache server but 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. So in my browser window the code of the program is
shown when I call the cgi executable!
Is there anything wrong with the way I config this dir for cgi executing
(see below) or do I need to check other settings in my httpd.conf file? When
I configure cgi execution for a certain directory this has nothing to do
with my scriptalias or does it?
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: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] CGI executing for a certain directory
Posted by "F. Bos" <f....@chello.nl>.
I'm trying to execute an exe file.
-----Oorspronkelijk bericht-----
Van: William A. Rowe, Jr. [mailto:wrowe@rowe-clan.net]
Verzonden: woensdag 31 augustus 2005 16:24
Aan: users@httpd.apache.org
Onderwerp: Re: [users@httpd] CGI executing for a certain directory
F. Bos wrote:
> Hi,
>
> I've got a question that should be simple for an advanced Apache user. I'm
> trying to set up a certain directory so that cgi-bin apps can be run from
> there. The Apache manual is quite clear on this but I can't make it work.
> What am I doing wrong? I use the config lines at the bottom of this
message
> to set the directory up for cgi-bin executing. I saved and restarted the
> Apache server but 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. So in my browser window the code of the program
is
> shown when I call the cgi executable!
You forgot to mention if this is an executable (e.g. a .exe or .com
binary) or a script. I started to believe you were talking about an
.exe until you mentioned that it shows your 'code'. What are you trying
to invoke?
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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
Re: [users@httpd] CGI executing for a certain directory
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
F. Bos wrote:
> Hi,
>
> I've got a question that should be simple for an advanced Apache user. I'm
> trying to set up a certain directory so that cgi-bin apps can be run from
> there. The Apache manual is quite clear on this but I can't make it work.
> What am I doing wrong? I use the config lines at the bottom of this message
> to set the directory up for cgi-bin executing. I saved and restarted the
> Apache server but 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. So in my browser window the code of the program is
> shown when I call the cgi executable!
You forgot to mention if this is an executable (e.g. a .exe or .com
binary) or a script. I started to believe you were talking about an
.exe until you mentioned that it shows your 'code'. What are you trying
to invoke?
---------------------------------------------------------------------
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