From 6dd638ffee471fc61ed090f3f47def085d101bf1 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 25 Oct 2018 12:35:34 +0200 Subject: [PATCH] Handle the smartgears_special_redirect case. --- smartgears/smartgears-nginx-frontend/defaults/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/smartgears/smartgears-nginx-frontend/defaults/main.yml b/smartgears/smartgears-nginx-frontend/defaults/main.yml index bd513750..3fb7efe1 100644 --- a/smartgears/smartgears-nginx-frontend/defaults/main.yml +++ b/smartgears/smartgears-nginx-frontend/defaults/main.yml @@ -10,5 +10,9 @@ smartgears_tomcat_manager_exposed: False smartgears_tomcat_manager_access_acls: - { policy: 'allow', address: '0.0.0.0/0' } +# You can use smartgears_special_redirect to redirect whatever URL to another one, even changing the hostname (it must be an alias of the machine hostname if you want to maintain it local) +#smartgears_special_redirect: +# - { source_uri: '/', dest_host: 'hostname-alias', dest_url: 'service-url'} + smartgears_nginx_expose_tomcat_logs: False smartgears_nginx_rw_html_root: False