"Phillip Hilton" <p_hilton / excite.com> wrote :

> 1: I can't seem to run my Ruby CGI scripts through my apache web
> server (under windows). My Perl scripts run fine.
>
Assuming ruby is on your path (typically C:\Ruby\bin), and that
option "ExecCGI" has been enabled in the cgi-bin directory, the
following works fine:
--------
#!ruby
print "Content-type: text/html\r\n\r\n"
print "<html><body>Hello World!</body></html>\r\n"

--------
Just don't forget that 1st shebang line.

HTH,

Bernard.