Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: CGI configuration help requested

From: sterling:rebol at: 14-Nov-2000 10:31

As wit hall CGI programs, you'll need to print out hte content-type before you print anything else out. Then there must be an empty line before any other text... see corrected cgi script quoted below. Sterling
> Sure would appreciate some help in properly configuring my server so that I can invoke Rebol scripts from the web. > > My web host provider is running BSDI and Apache. I have access to the .htaccess file, but not the srm.conf file. I have added the following line to the .htaccess file: > AddType application/x-httpd-cgi .r > > I have put a test file,test.r, in my cgibin and permissioned it -rwxr-xr-x. For some reason my cgibin is not hyphenated like cgi-bin, it is just cgibin. > > I know Rebol works as I can telnet into my site and run it. > > When I point my browser at test.r I get the following error message: > The server encountered an internal error or misconfiguration and was unable to complete your request. > The following is from my log: > [14/Nov/2000:11:19:24 -0500] "GET /cgibin/test.r HTTP/1.1" 500 529 >
Notice the "content-type: text/html" followed by a newline. If REBOL is being spawned at the CGI request with this script properly then the only problem was the incomplete content-type header and it should work fine. If this doesn't fix it, then you still have some problem. Check the Apache error.log file to see if it tells you anything useful. Corrected script here: