From 2cd029d6a514f79b604016f0ce7eaebdc92d9fff Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 6 Nov 2020 01:00:21 +0100 Subject: [PATCH] Redirect HTTP requests that are directly made to the IP address to auro.re --- host_vars/proxy-local.adm.auro.re.yml | 4 +++- host_vars/proxy.adm.auro.re.yml | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/host_vars/proxy-local.adm.auro.re.yml b/host_vars/proxy-local.adm.auro.re.yml index fc86d7f..903b389 100644 --- a/host_vars/proxy-local.adm.auro.re.yml +++ b/host_vars/proxy-local.adm.auro.re.yml @@ -28,7 +28,9 @@ nginx: port: 2222 destination: "10.128.0.60:2222" - redirect_sites: {} + redirect_sites: + - from: 45.66.111.61 + to: auro.re reverseproxy_sites: - from: re2o.auro.re diff --git a/host_vars/proxy.adm.auro.re.yml b/host_vars/proxy.adm.auro.re.yml index 32663d1..c49b40e 100644 --- a/host_vars/proxy.adm.auro.re.yml +++ b/host_vars/proxy.adm.auro.re.yml @@ -29,8 +29,10 @@ nginx: redirect_tcp: {} redirect_sites: - - from: auro.re - to: www.auro.re + - from: www.auro.re + to: auro.re + - from: 92.222.211.195 + to: auro.re reverseproxy_sites: - from: phabricator.auro.re