nginx on host + nginx in jail - how to setup two servers?

SplitIce mat999 at gmail.com
Sun Oct 31 11:09:29 MSK 2010


server {
        listen frontend:80 default_server;
        proxy_intercept_errors on;
        location / {
        proxy_pass        http://backend;
        proxy_set_header  X-Real-IP  $remote_addr;
        proxy_set_header Host $http_host;
        }
}

On Sun, Oct 31, 2010 at 6:14 AM, dong <nginx-forum at nginx.us> wrote:

> How to set proxy_pass? When I set NAT in pf.conf then sites from nginx
> on my host dont working, but sites from jail is working :)
>
> Its my pf.conf now:
> rdr pass on em0 proto tcp from any to em0 port 80 -> 192.168.1.3 port
> 80
> nat on em0 from 192.168.1.0/24 to any -> 188.x.x.x
>
> 192.168.1.3 - its my jail
> 188.x.x.x its my host
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,145777,146051#msg-146051
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



-- 
Warez Scene <http://thewarezscene.org> Free Rapidshare
Downloads<http://www.nexusddl.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101031/2cf9c18d/attachment.html>


More information about the nginx mailing list