From: John Feezell Date: 2002-11-13T22:27:57+09:00 Subject: Re: eruby0.9.8/winxp/apache1.3.27 - eruby don't parse my files I'm not sure what your problem is but it could relate to using the quotes in the http.conf statements. You may also need some additional settings. I have found the following resource helpful: http://httpd.apache.org/docs/howto/cgi.html#explicitlyusingoptionstopermit cgiexecution Perhaps you can find your answer there. 11/13/2002 6:17:27 AM, "sven" wrote: >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" 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" 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 >> > >> > >> > >> > >> >eruby example >> > >> > >> >

Enumeration

>> >
    >> ><%(1..10).each do|i|%> >> >
  • number <%=i%>
  • >> ><%end%> >> >
>> >

Environment variables

>> > >> ><%ENV.keys.sort.each do |key|%> >> > >> > >> > >> ><%end%> >> >
<%=key%><%=ENV[key]%>
>> > >> > >> > >> > >> > >> > >> >then i got this result page >> > >> > >> > >> > >> >eruby example >> > >> > >> >

Enumeration

>> >
    >> ><%(1..10).each do|i|%> >> >
  • number <%=i%>
  • >> ><%end%> >> >
>> >

Environment variables

>> > >> ><%ENV.keys.sort.each do |key|%> >> > >> > >> > >> ><%end%> >> >
<%=key%><%=ENV[key]%>
>> > >> > >> > >> >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? >> > >> > >> > >> >> >> >> > > >