2001-12-11 -+- John F. Dutcher -+- jfdutcher@mkl.com -+- Could you by any chance comment on the following issue ?
I include a very simple CGI script right from the book: 'The Official Rebol User's Guide'.
I placed the script in th 'cgi-bin' for my local Apache server (ver. 1.3.22)
When retrieved by the browser...Apache doesn't seem to have directed the cgi script to be executed
by the interpreter which is at the default location: c:\rebol. Instead the script has its HTML code parsed
such that the page is actually displayed (one line)....but the remainder of the script content is also displayed
as well....as opposed to being 'executed' by the script interpreter (Rebol).
I also include the Apache 'ScriptAlias' portion of the configuration file.
Thanks much, John Dutcher
The script from the book:
#!c:/rebol/rebol.exe -cs
REBOL[]
print "Content-Type: text/html^/^/"
print (
<html><head><title>REBOL CGI</title></head>
<body>
<br> <br> <br> <br> <br> <br>
<center>
<H1>Welcome to my first REBOL CGI script.</h1>
</center>
</body>
</html>
}
********************************************************************************************************
The 'ScriptAlias' portion of Apache config file:
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"
#
# "C:/Program Files/Apache Group/Apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Program Files/Apache Group/Apache/cgi-bin">
AllowOverride None
Options Indexes FollowSymLinks MultiViews ExecCGI
Order allow,deny
Allow from all
</Directory>