From: Paul Lutus Date: 2006-09-21T04:50:13+09:00 Subject: Re: super simple serving of ruby pages zerohalo wrote: > > Jan Svitok wrote: > >> Now it starts .rb for me, although I'm not able to write any good cgi >> right now ;-) maybe it's because I'm on windows... > > Doesn't work for me. With even the simplest .rb file it gives me the > following error: > > ERROR Premature end of script headers: This is a classic CGI header error, caused by the absence of a recognizable emitted header like: print "Content-type: text/html\r\n\r\n" As the first text emitted by the script. Remember, if you can get the server to read the filetype and treat it as a well-behaved source, and if you can get the Ruby scripts to emit the expected header information, your server requirements become much simpler to meet. -- Paul Lutus http://www.arachnoid.com