Re: mod_ruby gets 503 error
CyBerHigh <[email protected]> Sat, 21 Jan 2006 21:02:14 -0800
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
CyBerHigh wrote: > I am have a apache 13 server set up with mod_ruby enabled. However > every time I try to use a ruby file I get a 503 error. It works just > fine for eruby however. Heres my apache config part: > > LoadModule ruby_module /usr/local/libexec/apache/mod_ruby.so > > <IfModule mod_ruby.c> > RubyRequire apache/ruby-run > # Execute *.rb files as Ruby scripts > <Files *.rb> > SetHandler ruby-object > RubyHandler Apache::RubyRun.instance > </Files> > </IfModule> > AddType application/x-httpd-ruby .rb > <IfModule mod_ruby.c> > RubyRequire apache/eruby-run > <Files *.rhtml> > SetHandler ruby-object > RubyHandler Apache::ERubyRun.instance > </Files> > </IfModule> > <Directory *> > Options ExecCGI > </Directory> > > I do not have it set up like the wiki says. I want any file named .rb > to be executed as a ruby file even if it isn't in the /ruby > directory. Same goes for eruby. However like I said above I get a > big 503 error any time I try to access a .rb file. Any ideas? > > > Also when I try to use like Apache::Request.headers_in() or any other > methods in mod_ruby, in eruby. I get an error saying that the method > doesn't exists. I am not sure if it is suppose to be like that. I am > using FreeBSD 5.4 I installed mod_ruby and eruby from ports. > Thank you > > > > Correction, It is a 403 error that I am receaving. Sorry about that. Thanks again