diff options
Diffstat (limited to 'katrin.d/data_proxy.variant')
-rw-r--r-- | katrin.d/data_proxy.variant | 11 |
1 files changed, 11 insertions, 0 deletions
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; +} |