Late night eRuby

I’m trying to get eRuby 1.0.3 running with Apache 1.3.27 on Windows
XP. I put in the two lines:

AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby e:/ruby/bin/eruby.exe

When I try to go to an index.rhtml page I get a 400 Bad Request error
from Apache. Anybody know anything about this?

Josh Harvey

I found what was causing this – I had to use:

ScriptAlias /ruby/ e:/ruby/
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /ruby/bin/eruby.exe

But now I’m getting (500 Internal Server Error):

[Sat Jun 14 04:52:14 2003] [error] [client 127.0.0.1] Premature end of
script headers: e:/ruby/bin/eruby.exe
[Sat Jun 14 04:52:14 2003] [error] [client 127.0.0.1]
e:\ruby\bin\eruby.exe: missing required file to process

I saw that a couple of other people posted this problem, but there
were no answers. Anybody have an idea?

Josh

josh@weirdchicken.com (Joshua Harvey) wrote in message news:d700d601.0306132254.44cf6e86@posting.google.com

···

I’m trying to get eRuby 1.0.3 running with Apache 1.3.27 on Windows
XP. I put in the two lines:

AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby e:/ruby/bin/eruby.exe

When I try to go to an index.rhtml page I get a 400 Bad Request error
from Apache. Anybody know anything about this?

Josh Harvey

Hi,

I saw that a couple of other people posted this problem, but there
were no answers. Anybody have an idea?

The following is a workaround, posted originally on
http://www.modruby.net/ml/archive/modruby/200302.month/724.html

···

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

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

Please remove these lines, then add the following lines to your
httpd.conf instead.

<Files *.rhtml>
Options ExecCGI

AddType application/x-httpd-cgi .rhtml

Then append the following line to the top of *.rhtml.
#!c:/path/to/eruby.exe

Shugo

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

I would be interested in seeing a real solution for this problem,
too…


Bye: Andi S. mailto:nullpointer@myrealbox.com

Hi Andi,

I tried that, and it worked. That’s the way I’m doing it now, but
naturally it would be better not to have that shebang line in there.

Best,
Josh

calvin8@t-online.de (Andi Scharfstein) wrote in message news:39340731093.20030614164354@myrealbox.com

···

Hi,

I saw that a couple of other people posted this problem, but there
were no answers. Anybody have an idea?

The following is a workaround, posted originally on
http://www.modruby.net/ml/archive/modruby/200302.month/724.html

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

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

Please remove these lines, then add the following lines to your
httpd.conf instead.

<Files *.rhtml>
Options ExecCGI

AddType application/x-httpd-cgi .rhtml

Then append the following line to the top of *.rhtml.
#!c:/path/to/eruby.exe

Shugo

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

I would be interested in seeing a real solution for this problem,
too…