From: "Jon A. Lambert" Date: 2004-02-12T19:00:28+09:00 Subject: Re: Problems getting Apache 2.0.43 and erb to work "Jon A. Lambert" wrote: > I'm running Apache 2.0.43 on Windows XP and trying to setup erb (eruby?). > > I receive the following in the apache error.log > [error] [client 10.0.0.2] Premature end of script headers: erb > > My http.conf configuration contains: > AddType application/x-httpd-eruby .rhtml > Action application/x-httpd-eruby /cgi-bin/erb > FWIW, In case others are having this problem, I finally got erb to work. I had to make the following modifications to the erb starting script: 115: # src = $<.read 116: src = File.new(ENV['PATH_TRANSLATED']).read # $< is nil 117: exit 2 unless src 118: print "Content-type: text/html\r\n\r\n" # Malformed header unless content-type given -- J. Lambert