[REBOL] Re: Running CGI-Script from outside CGI-BIN?
From: greg_piney:mcgraw-hill at: 7-Feb-2001 15:12
andy york
<[andyyork--gte--net]> on 02/07/2001 01:49:21 PM
Please respond to [rebol-list--rebol--com]
To: [rebol-list--rebol--com]
cc: (bcc: Greg Piney/McGraw-Hill/US)
Subject [REBOL] Re: Running CGI-Script from outside
: CGI-BIN?
In the early days of HTTP servers, before Netscape and Apache, A decision
was made to segregate programs (CGI) and content (HTML). This is why
all modern Web Servers still require definition of cgi-bin directories.
That's the key. All you have to do is define your home-root directory as
cgi-bin.
Then when you have a URL such as:
http://www.freddsweb.com/spamprog?youremailaddress
It will work. It is a definition within the Web Server. Any good Web admin
can make it happen. Additionally, you will probably have to do the " #!rebol
-cgi "
as the first line of the script. And, depending on your provider, you may need
to
have the Rebol distribution in your home directory.
You also don't really need the ".r" suffix. Just give
the script the name you want. It will work.
Greg Piney
Standard & Poor's Web Engineering