From efa135e3979d4823b8d92b51d07efceac0d7fd59 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Thu, 11 Apr 2019 18:17:41 +0200 Subject: [PATCH] Actually make Proxies more clear in response headers Signed-off-by: Patrick Uiterwijk --- files/httpd/headers.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/httpd/headers.conf.j2 b/files/httpd/headers.conf.j2 index 077ccb3e46..ee8c0c930a 100644 --- a/files/httpd/headers.conf.j2 +++ b/files/httpd/headers.conf.j2 @@ -1,6 +1,10 @@ Header set AppTime "%D" PassEnv HOSTNAME +{% if 'proxy' in inventory_hostname %} +Header set ProxyServer "{{ inventory_hostname }}" +{% else %} Header set AppServer "{{ inventory_hostname }}" +{% endif %} {% if inventory_hostname in groups['proxies'] and ansible_distribution == 'Fedora' %} ErrorDocument 421 "You have hit an incorrect proxy for a Fedora Project website due to a bug in Firefox. Please refresh"