[REBOL] Re: Putting Rebol on Server?
From: jason:cunliffe:verizon at: 6-Nov-2002 22:05
Try just adding this to your .htaccess file
Addhandler cgi-script .r
If you decide to suffix your rebol scripts .xyz or .cgi .pl [eek!!] then you can
do so :
Addhandler cgi-script .r .xyz or .cgi .pl
All of those will Apache web server to execute them as cgi-scripts. That givses
permission. The next step is up to your scrip to define what applcaition it
wants to use, as defined in the the first line, as you are doing:
Once it is working, you may want Rebol to generate directory indexes.
If so, just add this line to .htaccess
DirectoryIndex index.html index.htm index.shtml index.r
That means when someone goes to:
Apache will look first for a file called index.html and use that.
If it does not find any index.html, it will go on down the list until it finds
one, eventually perhaps getting to index.r [or whatever you want to name it]
If your want Rebol to be your first choice to handle the default index, then put
it as the first item instead:
DirectoryIndex index.r index.html index.htm index.shtml
In that case, even if index.html also exists, index.r will be run.