www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/18/07:25:39

From: Erwann ABALEA <eabalea AT certplus DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: CGI / Common Gateway Interface
Date: Fri, 18 Dec 1998 13:02:03 +0100
Organization: Certplus SA
Lines: 26
Message-ID: <Pine.OSF.4.05.9812181258510.32355-100000@fermi.cnam.fr>
References: <3675FAB4 DOT 918BEB88 AT codenet DOT net> <368994ac DOT 1257740 AT 158 DOT 152 DOT 254 DOT 70> <3679EB62 DOT 3F5C9A65 AT codenet DOT net>
NNTP-Posting-Host: fermi.cnam.fr
Mime-Version: 1.0
X-Sender: abalea_e AT fermi DOT cnam DOT fr
In-Reply-To: <3679EB62.3F5C9A65@codenet.net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Thu, 17 Dec 1998, Steve Patton wrote:

> I tried to do something like that, unfortunately it tried to initiate a
> download.  And the server I'm using is Apache (for Win32) and is on an internal
> proxie.  Even have my own DNS entry.  But like I said, it tried to have me
> download xxxx.exe (keeing in reference to your example).  Do I need to rename
> the .EXE to something like xxxx.cgi?  Thanks!

This is an Apache configuration issue...

Apache isn't configured to try to execute your program. You configured it
to send it to you instead.

This is completely off-topic, but read-on:

Just open your conf/httpd.conf, add a line like this:
ScriptAlias	/cgi-bin	/apache/.../whatever

Read the docs to see if I didn't swapped the 2 arguments, change the
/cgi-bin to the virtual directory you want to put your program in, and the
/apache/.../whatever to be the real directory in which your program is...

-- 
Erwann ABALEA
eabalea AT certplus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019