I run a similar setup, its not hard. just proxy_pass on the outermost server.<br><br><div class="gmail_quote">On Sun, Oct 31, 2010 at 12:59 AM, Ian Hobson <span dir="ltr">&lt;<a href="mailto:ian.hobson@ntlworld.com">ian.hobson@ntlworld.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 29/10/2010 18:26, dong wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have one nginx server on my host, whose connected to internet. I have<br>
second nginx in jail, whose has nonroutable ip. I want:<br>
<br>
nginx jail ---&gt;  nginx host ---&gt;  internet (world)<br>
<br>
How I can setup this? Proxy or sth?<br>
</blockquote></div>
If you really want to run nginx on both machines, then you need to set up a normal install in the jail machine, and a reverse proxy configuration on the firewall.<br>
<br>
If you can serve all your content from the &quot;jail&quot; version, then you don&#39;t need the version on the firewall.  Simply port forward port 80 to the port and ip of the &quot;jail&quot; machine.  I think you only need to forward TCP. If you are using https then you will need to forward that port also.<br>

<br>
Regards<br><font color="#888888">
<br>
Ian</font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://thewarezscene.org" target="_blank">Warez Scene</a> <a href="http://www.nexusddl.com" target="_blank">Free Rapidshare Downloads</a><br><br>