Re: Can't Get mod_ruby to Work in Apache 2.0.47

"Mark Wilmoth" <[email protected]>
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <003401c402d0$4ef7c3d0$0200a8c0@rome>
<snip>
> 
> > require 'cgi'
> > cgi = CGI.new
> > print cgi.header['type'=>'text/html']
> 
> 
> try changing the last line to:
>   print cgi.header('type'=>'text/html')
> 

That worked! 

That works but if I use this instead:

print "HTTP/1.1 200 OK\r\n"
print "Content-Type: text/plain\r\n\r\n"

The page just opens up like a text file. Oh well it works the other way for
now, so I can play. :)

<snip>
> 
> I'm not sure <Location> likes filename extensions, but I could be wrong.
> Try changing this config to use the <Files> directive.
> 

Apparently Apache 2 didn't like it, but Apache 1.3 did.

<snip>
>
> Hope that helps.
> 
> Cameron
> 

Thanks a bunch!

Mark
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.