Re: mod_ruby gets 503 error
Brian Candler <[email protected]> Sun, 22 Jan 2006 18:01:21 +0000
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Jan 22, 2006 at 03:34:41AM -0800, CyBerHigh wrote: [stuff in a personal mail which should have gone to the list instead] > Brian Candler wrote: > > >403 = Forbidden. > > > >Can you see anything: > > > >(1) in the Apache error log > >(2) in a HTTP response when issued manually, e.g. > > > >$ telnet localhost 80 > >GET /foo.rb HTTP/1.0 << Note this is CASE-SENSITIVE > >Host: www.foo.com > > > >(end with a blank line, i.e. Enter by itself) > > > >Also, what happens if you remove the AddType line? The example at > >http://wiki.modruby.net/en/?InstallGuide > >is exactly the same as what you're trying to do, except they use *.rbx > >instead of *.rb > > > >Regards, > > > >Brian. > > > > > Well when I go to the page and when I go through telnet I get a normal > 403 error from apache. It is like: > > HTML><HEAD> > <TITLE>403 Forbidden</TITLE> > </HEAD><BODY> > <H1>Forbidden</H1> > You don't have permission to access /public_html/main.rb > on this server.<P> > </BODY></HTML> > > Now when I view the apache error log I noticed something interesting. > It seems that somehow it is redirecting the .rb files to a default > cgi-bin directory. It is showing this: > > [Sun Jan 22 02:36:10 2006] [error] [client 203.14.211.15] Symbolic link > not allowed: /usr/local/www/cgi-bin/ > [Sun Jan 22 06:55:12 2006] [error] [client 218.200.122.35] Symbolic link > not allowed: /home/ > > Any ideas on how to fix this? Yes - either remove the symlinks, or set options FollowSymLinks in your Apache config. For example, perhaps /usr/local/www/cgi-bin is a symlink to /usr/local/www/cgi-bin-dist or something like that. The default is that Apache will not follow them, for security reasons. Brian.