Welcome! Log In Create A New Profile

Advanced

ReverseProxy for CALDAV and Z-Push

Posted by vdj 
vdj
ReverseProxy for CALDAV and Z-Push
August 09, 2012 10:43AM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready