Mongrel is probably set up to listen on port 3000 for localhost only.&nbsp; Shouldn&#39;t you be connecting via port 80 instead and let Apache talk to Mongrel?&nbsp; <a href="http://www.myserver.com">http://www.myserver.com</a><br><br>

<div><span class="gmail_quote">On 1/2/07, <b class="gmail_sendername">Jim Douglas</b> &lt;<a href="mailto:jdz99@hotmail.com">jdz99@hotmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&gt;From: Steven Lumos &lt;<a href="mailto:steven@lumos.us">steven@lumos.us</a>&gt;<br>&gt;Reply-To: <a href="mailto:mongrel-users@rubyforge.org">
mongrel-users@rubyforge.org</a><br>&gt;To: <a href="mailto:mongrel-users@rubyforge.org">mongrel-users@rubyforge.org</a><br>&gt;Subject: [Mongrel] my apache 2.2 conf<br>&gt;Date: Thu, 21 Dec 2006 11:20:38 -0800<br>&gt;<br>
&gt;<br>&gt;I just finished updating our internal site, which hosts multiple Rails<br>&gt;apps, to Apache 2.2.3.&nbsp;&nbsp;It also has a TWiki rewritten into the root,<br>&gt;ViewVC mounted on /cvs, and /server-status and /server-info.
<br>&gt;<br>&gt;&lt;VirtualHost *:80&gt;<br>&gt;&nbsp;&nbsp; ServerName <a href="http://int.example.com">int.example.com</a><br>&gt;&nbsp;&nbsp; ServerAlias int<br>&gt;<br>&gt;&nbsp;&nbsp; CustomLog /var/www/logs/int.example.com/access.log combined<br>
&gt;&nbsp;&nbsp; ErrorLog&nbsp;&nbsp;/var/www/logs/int.example.com/error.log<br>&gt;<br>&gt;&nbsp;&nbsp; [...]<br>&gt;<br>&gt;&nbsp;&nbsp; ## Application Server<br>&gt;<br>&gt;&nbsp;&nbsp; # APP1<br>&gt;&nbsp;&nbsp; &lt;Proxy balancer://app1&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; BalancerMember <a href="http://127.0.0.1:11001">
http://127.0.0.1:11001</a><br>&gt;&nbsp;&nbsp; &lt;/Proxy&gt;<br>&gt;<br>&gt;&nbsp;&nbsp; Alias /app1 /production/app1/public<br>&gt;&nbsp;&nbsp; &lt;Directory /production/app1/public&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Allow from .example.com<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; RewriteEngine on
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; RewriteRule ^/?$ balancer://app1%{REQUEST_URI} [P,L]<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-f<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; RewriteRule . balancer://app1%{REQUEST_URI} [P,L]<br>&gt;&nbsp;&nbsp; &lt;/Directory&gt;<br>&gt;&nbsp;&nbsp; # End APP1
<br>&gt;<br>&gt;&nbsp;&nbsp; # APP2<br>&gt;&nbsp;&nbsp; &lt;Proxy balancer://app2&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; BalancerMember <a href="http://127.0.0.1:11010">http://127.0.0.1:11010</a><br>&gt;&nbsp;&nbsp; &lt;/Proxy&gt;<br>&gt;<br>&gt;&nbsp;&nbsp; Alias /app2 /dev/app2/public
<br>&gt;&nbsp;&nbsp; &lt;Directory /dev/app2/public&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Allow from .example.com<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; RewriteEngine on<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; RewriteRule ^/?$ balancer://app2%{REQUEST_URI} [P,L]<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; RewriteCond %{REQUEST_FILENAME} !-f
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; RewriteRule . balancer://app2%{REQUEST_URI} [P,L]<br>&gt;&nbsp;&nbsp; &lt;/Directory&gt;<br>&gt;&nbsp;&nbsp; # End APP2<br>&gt;&lt;/VirtualHost&gt;<br>&gt;<br>&gt;Then I give mongrel_rails --prefix app&lt;n&gt; and done.&nbsp;&nbsp;Almost too easy.
<br>&gt;And it&#39;s going to be almost trivial to add more mongrels whenever we<br>&gt;need them and I set up mongrel_cluster.&nbsp;&nbsp;Thanks again Zed and whoever<br>&gt;is responsible for mod_proxy(_balance).<br>&gt;<br>&gt;Steve
<br>&gt;<br>&gt;_______________________________________________<br>&gt;Mongrel-users mailing list<br>&gt;<a href="mailto:Mongrel-users@rubyforge.org">Mongrel-users@rubyforge.org</a><br>&gt;<a href="http://rubyforge.org/mailman/listinfo/mongrel-users">
http://rubyforge.org/mailman/listinfo/mongrel-users</a><br><br><br>I tried this config and can get it working from the server like so,<br><br><a href="http://www.myserver.com:3000/">http://www.myserver.com:3000/</a><br><br>
...but when I try to access this address from a client machine elsewhere I<br>get a &quot;unable to connect error&quot;<br><br>any ideas?<br><br>Jim<br><br>_________________________________________________________________
<br>Find sales, coupons, and free shipping, all in one place! MSN Shopping<br>Sales &amp; Deals<br><a href="http://shopping.msn.com/content/shp/?ctid=198,ptnrid=176,ptnrdata=200639">http://shopping.msn.com/content/shp/?ctid=198,ptnrid=176,ptnrdata=200639
</a><br><br><br><br>_______________________________________________<br>Mongrel-users mailing list<br><a href="mailto:Mongrel-users@rubyforge.org">Mongrel-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/mongrel-users">
http://rubyforge.org/mailman/listinfo/mongrel-users</a><br><br></blockquote></div><br>