Re: Need help getting start with a test cgi script.

From: Trey Waters (news5_at_sidestreet.gotdns.org)
Date: 03/22/05


Date: Tue, 22 Mar 2005 15:53:48 GMT

On Tue, 22 Mar 2005, packat wrote:

> I am trying to get my first cgi script running. First I put
> a simple try.cgi in the directory
> C:\Program Files\Apache Group\Apache2\cgi-bin\try.cgi

> The config file has the line ScriptAlias /cgi-bin/ "C:/perl/eg/cgi-bin/"
>
> Can anyone help me find what was wrong?

This question appears to be related to misconfiguring Apache, and should
probably be directed to a group dealing with Apache.

As for your problem:

The above discrepency sticks out for me....I haven't used Apache on Win,
but on Unix the ScriptAlias declaration usually denotes where you put your
CGI scripts; and you stated that you put your CGI script in a different
location than you configured.

+-----------------------------------------------------------------------+
 Trey Waters news5@sidestreet.gotdns.org
                  Experience is the worst teacher.
     It always gives the test first and the instruction afterward.
+-----------------------------------------------------------------------+



Relevant Pages

  • Re: Newbie tearing hair out
    ... that apache was configured to execute cgi scripts, ... >> I think you need to configure apache to know that .rb extension files ... >> are to be treated as CGI scripts to be run via the Rub interpreter (or ... >> general experience with this sort of thing with Apache. ...
    (comp.lang.ruby)
  • [UNIX] Apache Discloses Source Code via POST Requests to a Location with WebDAV and CGI enabled
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... There is an information leakage in Apache that results from an interaction ... POST request is sent to a CGI script on an affected server, ... Remote attackers can obtain the source code of CGI scripts located on ...
    (Securiteam)
  • creating and serving temporary files with apache
    ... I am running Apache, which is running some CGI scripts, which allow a web ... It seems to be clear that allowing apache's user (namely www-data) write ...
    (Debian-User)
  • Re: Security risks in setting public_html to 777?
    ... > I'm running a web server, and I want some CGI scripts to be able to ... You'll only need that if the web server is running as a user ... that - as an example, with Apache, suexec can be used to let the cgi apps ...
    (comp.os.linux.security)