Mongrel is probably set up to listen on port 3000 for localhost only. Shouldn't you be connecting via port 80 instead and let Apache talk to Mongrel? <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> <<a href="mailto:jdz99@hotmail.com">jdz99@hotmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">>From: Steven Lumos <<a href="mailto:steven@lumos.us">steven@lumos.us</a>><br>>Reply-To: <a href="mailto:mongrel-users@rubyforge.org">
mongrel-users@rubyforge.org</a><br>>To: <a href="mailto:mongrel-users@rubyforge.org">mongrel-users@rubyforge.org</a><br>>Subject: [Mongrel] my apache 2.2 conf<br>>Date: Thu, 21 Dec 2006 11:20:38 -0800<br>><br>
><br>>I just finished updating our internal site, which hosts multiple Rails<br>>apps, to Apache 2.2.3. It also has a TWiki rewritten into the root,<br>>ViewVC mounted on /cvs, and /server-status and /server-info.
<br>><br>><VirtualHost *:80><br>> ServerName <a href="http://int.example.com">int.example.com</a><br>> ServerAlias int<br>><br>> CustomLog /var/www/logs/int.example.com/access.log combined<br>
> ErrorLog /var/www/logs/int.example.com/error.log<br>><br>> [...]<br>><br>> ## Application Server<br>><br>> # APP1<br>> <Proxy balancer://app1><br>> BalancerMember <a href="http://127.0.0.1:11001">
http://127.0.0.1:11001</a><br>> </Proxy><br>><br>> Alias /app1 /production/app1/public<br>> <Directory /production/app1/public><br>> Allow from .example.com<br>> RewriteEngine on
<br>> RewriteRule ^/?$ balancer://app1%{REQUEST_URI} [P,L]<br>> RewriteCond %{REQUEST_FILENAME} !-f<br>> RewriteRule . balancer://app1%{REQUEST_URI} [P,L]<br>> </Directory><br>> # End APP1
<br>><br>> # APP2<br>> <Proxy balancer://app2><br>> BalancerMember <a href="http://127.0.0.1:11010">http://127.0.0.1:11010</a><br>> </Proxy><br>><br>> Alias /app2 /dev/app2/public
<br>> <Directory /dev/app2/public><br>> Allow from .example.com<br>> RewriteEngine on<br>> RewriteRule ^/?$ balancer://app2%{REQUEST_URI} [P,L]<br>> RewriteCond %{REQUEST_FILENAME} !-f
<br>> RewriteRule . balancer://app2%{REQUEST_URI} [P,L]<br>> </Directory><br>> # End APP2<br>></VirtualHost><br>><br>>Then I give mongrel_rails --prefix app<n> and done. Almost too easy.
<br>>And it's going to be almost trivial to add more mongrels whenever we<br>>need them and I set up mongrel_cluster. Thanks again Zed and whoever<br>>is responsible for mod_proxy(_balance).<br>><br>>Steve
<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><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 "unable to connect error"<br><br>any ideas?<br><br>Jim<br><br>_________________________________________________________________
<br>Find sales, coupons, and free shipping, all in one place! MSN Shopping<br>Sales & 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>