From b794f84da1aaf446a3965f9b9363f997b3183872 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 6 Oct 2019 05:53:11 +0200 Subject: Initial configuration --- katrin.d/data_proxy.variant | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 katrin.d/data_proxy.variant (limited to 'katrin.d/data_proxy.variant') diff --git a/katrin.d/data_proxy.variant b/katrin.d/data_proxy.variant new file mode 100644 index 0000000..2b9a795 --- /dev/null +++ b/katrin.d/data_proxy.variant @@ -0,0 +1,11 @@ +location /data { + if ($kit_client) { + return 301 http://192.168.26.170$request_uri; + } + + return 301 http://$host/remote$request_uri; +} + +location /remote/data { + proxy_pass http://192.168.26.170/data; +} -- cgit v1.2.3