# Deployment problem, FreeBSD, mongrel\_cluster

**URL:** <https://www.ruby-forum.com/t/deployment-problem-freebsd-mongrel-cluster/81836>\
**Category:** Rails\
**Created:** [January 15, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/deployment-problem-freebsd-mongrel-cluster/81836 "2007-01-15T17:19:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [January 15, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/deployment-problem-freebsd-mongrel-cluster/81836/1 "2007-01-15T17:19:41Z")

</div>

I’ve been trying to setup my first production environment and was  
following along with Coda Hale’s blog entry; I’m on a FreeBSD machine,  
so I’ve had to tweak a few things from the Linux based presentation.  
Generally most things have worked. However I’m having a minor  
difficulty with mongrel\_cluster.

The cluster is configured and with the “address: 127.0.0.1” line  
commented out I was able to verify that the three mongrels were active.  
When I uncomment that line, commit, and redeploy, however the three  
mongrels are still responding to requests directly when the tutorial  
says they shouldn’t be. I’ve also tried using “localhost” instead of  
127.0.0.1 as I know sometimes different platforms special case that  
differently, but its behaving the same way.

Does anyone have any experience for what else I need to look at to  
“lock-down” the individual mongrels of a mongrel\_cluster under FreeBSD?

Thank you.

Eric

---

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [January 15, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/deployment-problem-freebsd-mongrel-cluster/81836/2 "2007-01-15T20:55:55Z")

</div>

> says they shouldn’t be. I’ve also tried using “localhost” instead of  
> 127.0.0.1 as I know sometimes different platforms special case that  
> differently, but its behaving the same way.
> 
> Does anyone have any experience for what else I need to look at to  
> “lock-down” the individual mongrels of a mongrel\_cluster under FreeBSD?

Are you by any chance using a jail? If so, localhost/127.0.0.1 doesn’t  
really exist… the only thing that the jail can bind to is the public  
IP  
address… which is why you’re still able to request it…

What you could do if you don’t want people hitting mongrel directly is  
in  
the host (assuming this is a jail issue) have the firewall block  
requests  
to that port on the public IP if it’s coming from the outside world  
(based  
on inbound traffic on the external nic).

-philip

---

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [January 15, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/deployment-problem-freebsd-mongrel-cluster/81836/3 "2007-01-15T21:02:32Z")

</div>

Philip H. wrote:

> Are you by any chance using a jail? If so, localhost/127.0.0.1 doesn’t  
> really exist… the only thing that the jail can bind to is the public  
> IP  
> address… which is why you’re still able to request it…
> 
> What you could do if you don’t want people hitting mongrel directly is  
> in  
> the host (assuming this is a jail issue) have the firewall block  
> requests  
> to that port on the public IP if it’s coming from the outside world  
> (based  
> on inbound traffic on the external nic).
> 
> -philip

Thank you. That explains it perfectly. Yes I’m in a jail environment.

Could the jail have anything do to with a secondary problem I’m having  
of my VirtualHost \*:80 block that binds to the mongrel cluster not being  
respected by Apache2?

Eric

---

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [January 15, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/deployment-problem-freebsd-mongrel-cluster/81836/4 "2007-01-15T22:41:21Z")

</div>

> > -philip
> 
> Thank you. That explains it perfectly. Yes I’m in a jail environment.
> 
> Could the jail have anything do to with a secondary problem I’m having of my  
> VirtualHost \*:80 block that binds to the mongrel cluster not being respected  
> by Apache2?

Don’t know about that one… I’m in a jail, and my apache block  
contains  
this:

\<Proxy balancer://mongrel\_cluster\>  
BalancerMember [http://127.0.0.1:3000](http://127.0.0.1:3000)

(and my mongrel is 127.0.0.1 specified despite it not binding to it).  
Apache honors it for me…

I can send you my whole thing off line if you want…
