[REBOL] Running CGI-Script from outside CGI-BIN?
From: gjones05:mail:orion at: 7-Feb-2001 13:28
Assuming that your site is running on Apache, Tim Perdue explained how to
accomplish this task in PHP at the website:
The specific link to his follow-up article that gave more details is:
He used this method to build the website www.gotocity.com .
For REBOL, put the following in the httpd.conf file (or in the .htaccess for
the directory, if you don't have access to the httpd.conf file):
This tells Apache to run files in the directory as scripts. I put it after
the following line:
# End of browser customization directives
In my test case, I added index.r as another default, as such:
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
DirectoryIndex index.html index.shtml index.php index.r
Then in the path, put a file named index.r that basically runs code based on
supplied parameters. Be sure that this file includes the path to the rebol
interpreter with the #!, as usual, as the first line of the script. The
parameters can be supplied as part of the path, if you wish, like Tim did.
will run the file /local/index.r, and this script can parse the "path" for
the arguments. But, as always, be extremely careful about what is being
passed to the script interpreter.
On my test set-up, it worked "like a charm!" Slick stuff.
Hope that this helps.
Douglas Vos wrote: