Thank you for your suggest.<br><br>No my two rails instances are working fine, the only problem is:<br><br>The second instance is very slow, maybe a need do some tuning in nginx ?<br><br>Regards.<br><br><div class="gmail_quote">
On Dec 12, 2007 10:56 PM, Eden Li &lt;<a href="mailto:eden@mojiti.com">eden@mojiti.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
you need to setup another upstream block which specifies the ports for<br>second batch of mongrels and then proxy to that.<br><br>eg<br><br> &nbsp;upstream mongrel_cluster_2 {<br> &nbsp; &nbsp;server <a href="http://127.0.0.1:4000" target="_blank">
127.0.0.1:4000</a>;<br> &nbsp; &nbsp;server <a href="http://127.0.0.1:4001" target="_blank">127.0.0.1:4001</a>;<br> &nbsp; &nbsp;server <a href="http://127.0.0.1:4002" target="_blank">127.0.0.1:4002</a>;<br> &nbsp; &nbsp;server <a href="http://127.0.0.1:4003" target="_blank">
127.0.0.1:4003</a>;<br> &nbsp;}<br><br>...<br><br>proxy_pass <a href="http://mongrel_cluster_2" target="_blank">http://mongrel_cluster_2</a><br><br>make sure your 2nd cluster config is setup to use different ports from<br>your first mongrel cluster
<br><br>side note: you seem to have some references to fcgi and apache in your<br>config -- you might want to clean those out...<br><div><div></div><div class="Wj3C7c"><br>On 12/13/07, Francisco Valladolid &lt;<a href="mailto:ficovh@gmail.com">
ficovh@gmail.com</a>&gt; wrote:<br>&gt; Hi.<br>&gt;<br>&gt; I have two different rails app under the same server, using the same IP.<br>&gt;<br>&gt; How can do it? my primary web site is working correctly but the second one
<br>&gt; no.<br>&gt;<br>&gt; this is my config.<br>&gt;<br>&gt;<br>&gt;<br>&gt; &nbsp;--<br>&gt; Francisco Valladolid H.<br>&gt; &nbsp;-- <a href="http://bsdguy.net" target="_blank">http://bsdguy.net</a> - Perl, [Open-Net] BSD fan. --
<br>&gt;<br><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Francisco Valladolid H.<br> -- <a href="http://bsdguy.net">http://bsdguy.net</a> - Perl, [Open-Net] BSD fan. --