From 7c3a8a5819d128acb59bb08b1b79da373d7f2503 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 2 Feb 2017 10:09:44 +0100 Subject: [PATCH] Use IPs to not emerg Nginx when host does not exist --- data/conf/nginx/site.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data/conf/nginx/site.conf b/data/conf/nginx/site.conf index e543b84a..8a74c8c0 100644 --- a/data/conf/nginx/site.conf +++ b/data/conf/nginx/site.conf @@ -38,7 +38,7 @@ server { rewrite ^(/save.+)$ /rspamd$1 last; location /rspamd/ { - proxy_pass http://rspamd:11334/; + proxy_pass http://172.22.1.253:11334/; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header Strict-Transport-Security "max-age=31536000; includeSubdomains"; @@ -60,7 +60,7 @@ server { } location ^~ /Microsoft-Server-ActiveSync { - proxy_pass http://sogo:20000/SOGo/Microsoft-Server-ActiveSync; + proxy_pass http://172.22.1.252:20000/SOGo/Microsoft-Server-ActiveSync; proxy_connect_timeout 1000; proxy_next_upstream timeout error; proxy_send_timeout 1000; @@ -82,7 +82,7 @@ server { } location ^~ /SOGo { - proxy_pass http://sogo:20000; + proxy_pass http://172.22.1.252:20000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; @@ -104,7 +104,7 @@ server { } location /SOGo.woa/WebServerResources/ { - proxy_pass http://sogo:9192/WebServerResources/; + proxy_pass http://172.22.1.252:9192/WebServerResources/; proxy_set_header Host $host; proxy_cache sogo; proxy_cache_valid 200 1d; @@ -114,7 +114,7 @@ server { } location /SOGo/WebServerResources/ { - proxy_pass http://sogo:9192/WebServerResources/; + proxy_pass http://172.22.1.252:9192/WebServerResources/; proxy_set_header Host $host; proxy_cache sogo; proxy_cache_valid 200 1d; @@ -124,7 +124,7 @@ server { } location (^/SOGo/so/ControlPanel/Products/[^/]*UI/Resources/.*\.(jpg|png|gif|css|js)$ { - proxy_pass http://sogo:9192/$1.SOGo/Resources/$2; + proxy_pass http://172.22.1.252:9192/$1.SOGo/Resources/$2; proxy_set_header Host $host; proxy_cache sogo; proxy_cache_valid 200 1d;