Talkback for article: 169, September2000

REBOL the rebel

Back to: http://cgi.linuxfocus.org/English/September2000/article169.shtml

From: John F. Dutcher <jfdutcher(at)mkl.com> [ date: 2001-12-11 ]
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>

1 talkbacks in English
Other talkbacks:   Nederlands Russian Francais




Due to the increased amount of web spam we have deciced to removed the talkback posting possibility. You can read old talkbacks but you can no longer post new ones.

Back to http://cgi.linuxfocus.org/English/September2000/article169.shtml

Please contact webmaster(at)linuxfocus.org if you have any questions with regards to this talkback

lftalkback version 3.10