From: wayne@... (Wayne Pierce) Date: 2002-11-23T03:18:04+09:00 Subject: 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:
<% 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