Hello, could you recommend NGINX config for translate request from one Public IP to CALDAV and Z-Push servises?
The services CALDAV (from Thunderbird) and Z-Push (from Android) work success when I connect to them directly (by internal IP), but when I connect throught public IP with ReverseProxy NGINX I see error: "can't connect to server" (for Z-Push) . My config is:
# set headers
proxy_pass_header Date;
proxy_pass_header Server;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
location /Microsoft-Server-ActiveSync { proxy_pass http://project_backends_mail/Microsoft-Server-ActiveSync; }
location /caldav { proxy_pass http://domain_/caldav; }
Thank you for advise, Dmitry.