host -> jail -> host - BAD GATEWAY

dong nginx-forum at
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 (

server {
<------>listen 80;
<------>access_log  /var/log/nginx/;

<------>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:,148117,148117#msg-148117

More information about the nginx mailing list