[REBOL] CGI interpreter on win95 apache Re:

2000-02-23 Thread business

Your post was fascinating because when I used clicked to open it with my MS
Outlook express it pops open a blank ie window about 500x600 with no
controls and the following error message... Internet Explorer cannot open up
the file C//:\web\iejit.htm

How did you do that?

braman




- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 23, 2000 7:40 PM
Subject: [REBOL] CGI interpreter on win95 apache



  How can I make rebol a cgi interpreter on win95 apache ?

  I can easily make perl work.  Just copy the perl script to cgi-bin
and
  make sure a #!C:/PERL/BIN/PERL at the top.  I don't even need to
touch
  the apache .conf files.

  I did the same to rebol.  First it popup a rebol window and show all
  my stuff there instead of the browser.  Searched rebol.org and got
the
  -c or -cgi solution.  It did suppress the rebol window but nothing
  went to the browser.

  I guess apache captures stdout and sends to the browser.  rebol does
  not print to stdout and that's the problem.



[REBOL] CGI interpreter on win95 apache Re:

2000-02-23 Thread icimjs

Hi kenss,

At 11:40 AM 2/24/00 +0800, you wrote:
 
 How can I make rebol a cgi interpreter on win95 apache ?
 
 I can easily make perl work.  Just copy the perl script to cgi-bin and 
 make sure a #!C:/PERL/BIN/PERL at the top.  I don't even need to touch 
 the apache .conf files.

You may "not even need to touch ...". That may mean that Apache was already
configured to support perl. Or MS Windows is configured to support Perl and
perhaps therefore Apache does not need to be configured. 

I'm using Apache on a Win95 system and it works just fine. Here are my
settings.

The only file that needs to be modified is httpd.conf

1. ServerName must be configured to something sensible. If you are using
Apache locally then simply removing the comment character, #, will be
sufficient. Otherwise you must use the domain name of your si2. te or its
IP Number:

#ServerName new.host.name

2. You must add ExecCGI to the Options line:

Options Indexes FollowSymLinks ExecCGI

3. Are you using the default CGI directory cgi-bin for your scripts? 
C:\Program Files\Apache Group\Apache\cgi-bin

4. Check the first line of your CGI script. If rebol is in the directory
c:\rebol, your first line in the script should read:

#!C:/REBOL/REBOL.EXE --cgi --script

5. Verify that your script begins its output by printing:
print "Content-Type: text/html^/^/"

followed by a proper html page. A simple example:

print "Content-Type: text/html^/^/"
print {
HTML
HEAD
TITLETesting/TITLE
/HEAD
BODY
H1 This is a test. /H1
/BODY
/HTML
}

;- Elan  [: - )]