From 82e4ddd1d69f9f10bd9f58c4b4079fee2c78d76d Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 2 Oct 2020 14:01:55 -0400 Subject: [PATCH] don't serve requests targetted at the ip address --- roles/regluit_prod/templates/apache.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/regluit_prod/templates/apache.conf.j2 b/roles/regluit_prod/templates/apache.conf.j2 index d9cd315..63a0400 100644 --- a/roles/regluit_prod/templates/apache.conf.j2 +++ b/roles/regluit_prod/templates/apache.conf.j2 @@ -44,6 +44,7 @@ Header always add Strict-Transport-Security "max-age=15768000" Require all granted + Require expr %{HTTP_HOST} -strcmatch "*{{ server_name }}"