thx for this but i have now another problem.


 http.conf extract
ScriptAlias /cgi-bin/ "D:/Apache Group/Apache/cgi-bin/"
Action application/x-httpd-eruby "/cgi-bin/eruby.exe"
AddType application/x-httpd-eruby .rhtml


request result
-----------
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, admin / mshome.net and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.

More information about this error may be available in the server error log.



----------------------------------------------------------------------------

Apache/1.3.27 Server at 127.0.0.1 Port 80

Any Idea????




"John Feezell" <JohnFeezell / 3wplace.com> schrieb im Newsbeitrag
news:LG0RL62MHG1U86RNCUICB75473U.3dd12071 / feezellj...
> You can see your code working at 3wplace.com/rb/GetEnv.rhtml
>
> 11/12/2002 3:49:27 AM, "sven" <sven.rosner / gmx.de> wrote:
>
> >my configurations is
> >-eruby 0.9.8   http://www.dm4lab.to/~usa/ruby/index_en.html
> >-winxp without servicepacks
> >-apache 1.3.27
> >
> > http.conf extract
> >    AddType application/x-httpd-eruby .rhtml
> >    Action application/x-httpd-eruby /cgi-bin/eruby
> >
> >problem:
> >when i call a ruby file like this
> >
> ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
> ><html>
> ><head>
> ><title>eruby example</title>
> ></head>
> ><body>
> ><h1>Enumeration</h1>
> ><ul>
> ><%(1..10).each do|i|%>
> >  <li>number <%=i%></li>
> ><%end%>
> ></ul>
> ><h1>Environment variables</h1>
> ><table>
> ><%ENV.keys.sort.each do |key|%>
> >  <tr>
> >    <th><%=key%></th><td><%=ENV[key]%></td>
> >  </tr>
> ><%end%>
> ></table>
> ></body>
> ></html>
> >
> >
> >
> >
> >then i got this result page
> >
> ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
> ><html>
> ><head>
> ><title>eruby example</title>
> ></head>
> ><body>
> ><h1>Enumeration</h1>
> ><ul>
> ><%(1..10).each do|i|%>
> >  <li>number <%=i%></li>
> ><%end%>
> ></ul>
> ><h1>Environment variables</h1>
> ><table>
> ><%ENV.keys.sort.each do |key|%>
> >  <tr>
> >    <th><%=key%></th><td><%=ENV[key]%></td>
> >  </tr>
> ><%end%>
> ></table>
> ></body>
> ></html>
> >
> >So the ruby tags are unchanged and no error messages was created. Does
> >anybody know what's the problem
> >or ist there another solution to use rubyscript on windows?
> >
> >
> >
>
>
>
>