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?