From 42dd46e3058093454befc2371c5e51da4b9d39bf Mon Sep 17 00:00:00 2001 From: Stefan Dimitrov Date: Fri, 28 Aug 2015 15:07:47 -0400 Subject: [PATCH] Update nginx-primaryonly.conf Nginx should be connecting over the local interface, not to the IP the resolver gives it. Elsewhere in this file proxy_pass uses 127.0.0.1 as it should. --- conf/nginx-primaryonly.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx-primaryonly.conf b/conf/nginx-primaryonly.conf index 8849b2dd..2fb9972e 100644 --- a/conf/nginx-primaryonly.conf +++ b/conf/nginx-primaryonly.conf @@ -50,7 +50,7 @@ location ~ ^/((caldav|carddav|webdav).*)$ { # Z-Push doesn't like getting a redirect, and a plain rewrite didn't work either. # Properly proxying like this seems to work fine. - proxy_pass https://$HOSTNAME/cloud/remote.php/$1; + proxy_pass https://127.0.0.1/cloud/remote.php/$1; } rewrite ^/.well-known/host-meta /cloud/public.php?service=host-meta last; rewrite ^/.well-known/host-meta.json /cloud/public.php?service=host-meta-json last;