# Mod\_ruby

**URL:** <https://www.ruby-forum.com/t/mod-ruby/89018>\
**Category:** Ruby\
**Created:** [January 3, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/mod-ruby/89018 "2006-01-03T20:33:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ImperfectFreak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/8baadc/32.png) [@ImperfectFreak](https://www.ruby-forum.com/u/ImperfectFreak)\
**Post date:** [January 3, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/mod-ruby/89018/1 "2006-01-03T20:33:49Z")

</div>

I am running FreeBSD on my server, I have Apache 1.3.33 running. I have  
installed mod\_ruby, I think. I added “Include  
/usr/local/etc/apache/httpd.conf.mod\_ruby” to httpd.conf. I have a file  
called test.rbx all it has is some basic stuff

puts “Content-Type: text/html”  
puts  
puts “”  
puts “”  
puts “

# Hello Ruby!
”  
puts “”  
puts “”

and index.html is just has a link to test. When i click on the link I  
get an error…

Forbidden  
You don’t have permission to access /test.rbx on this server.

Apache/1.3.33 Server at [foo.bar.com](http://foo.bar.com) Port 80

---

<div class="post-metadata">

**Author:** ![ImperfectFreak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/8baadc/32.png) [@ImperfectFreak](https://www.ruby-forum.com/u/ImperfectFreak)\
**Post date:** [January 3, 2006, 10:31pm UTC](https://www.ruby-forum.com/t/mod-ruby/89018/2 "2006-01-03T22:31:53Z")

</div>

You probably need to set httpd.conf to associate the execution of .rbx  
files with mod\_ruby. I believe the information is in the docs that come  
with mod\_ruby. Or possibly the permissions on the directory are not set  
properly?

-Justin

---

<div class="post-metadata">

**Author:** ![ImperfectFreak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/8baadc/32.png) [@ImperfectFreak](https://www.ruby-forum.com/u/ImperfectFreak)\
**Post date:** [January 3, 2006, 11:02pm UTC](https://www.ruby-forum.com/t/mod-ruby/89018/3 "2006-01-03T23:02:59Z")

</div>

Justin C. wrote:

> > Apache/1.3.33 Server at [foo.bar.com](http://foo.bar.com) Port 80

Or the permissions of the script:

chmod 755 test.rbx

\_why

---

<div class="post-metadata">

**Author:** ![ImperfectFreak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/8baadc/32.png) [@ImperfectFreak](https://www.ruby-forum.com/u/ImperfectFreak)\
**Post date:** [January 3, 2006, 11:15pm UTC](https://www.ruby-forum.com/t/mod-ruby/89018/4 "2006-01-03T23:15:13Z")

</div>

Hi,

On Tue, 03 Jan 2006 20:34:03 +0100, ImperfectFreak  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Forbidden  
> You don’t have permission to access /test.rbx on this server.

You might want to check in your filesystem, if that file is readable and  
executable by the user of Apache.

Kash
