host -> jail -> host - BAD GATEWAY

dong nginx-forum at nginx.us
Fri Nov 5 23:11:50 MSK 2010


Im using FreeBSD and jails. I have my postfix on host, and main http
server in jail. 

When I set in jail (192.168.1.2):

server {
<------>listen 80;
<------>server_name www.poczta.a.org poczta.a.org;
<------>access_log  /var/log/nginx/poczta.a.org-access.log;

<------>location / {
<------><------>    proxy_pass http://188.212.129.X;
<------><------>    proxy_set_header X-Real-IP $remote_addr;
<------><------>    proxy_set_header Host $http_host;
<------>}
}

188.212.129.X it is my host IP.

I must set nginx on host, because without this my www mail client
(roundcube) dont working. I cant install postfix in jail. How to fix it?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,148117,148117#msg-148117




More information about the nginx mailing list