Eruby + Win2K + apache 2.x setup problems

I am having problems getting eruby, apache 2.x and Win2K to play
together nicely. I have eruby in the path and the following lines in
my httpd.conf file:

AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby.exe

I have tested several variations of the ‘Action’ line, apache always
thinks that it is a directory. For example, the above setup would
look at /cgi-bin/eruby/index.rhtml for the file when I request
http://127.0.0.1/index.rhtml .

I can run eruby with the .rhtml from the command line and get it
working fine, the .rhtml looks like this:

eruby test

eruby test

<% print "hello world" %> current time: <%= Time.now %> <%# this is a comment line. %> % print "this is one liner.\n"

I have set this up before on Linux, but this environment needs to be
Win2K. I was unable to compile eruby as a .so under Cygwin, there was
an error saying it could not be compiled that way on Windows. Because
of all the compiling problems I just pulled a binary off of the
Internet.

Anyone have pointers they would be willing to share?

Thanks,

Wayne

Hi Wayne,

[technical info]

I have set this up before on Linux, but this environment needs to be
Win2K. I was unable to compile eruby as a .so under Cygwin, there was
an error saying it could not be compiled that way on Windows. Because
of all the compiling problems I just pulled a binary off of the
Internet.

Anyone have pointers they would be willing to share?

Did you set this up on linux with Apache 2, or where you using Apache
1.x? From what I heard from Sean Chittenden Apache 2 has some major
internal api changes, such that the mod_ruby stuff is very different.
I don’t know if this applies to eruby as well.

Just a guess,

Patrick May