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>
<TITLE>Testing</TITLE>
</HEAD>
<BODY>
<H1> This is a test. </H1>
</BODY>
</HTML>
}

;- Elan >> [: - )]

Reply via email to