From 01861999ff90f084ff4ccf306ea8d70aca5285a4 Mon Sep 17 00:00:00 2001 From: Sarah Date: Mon, 15 Jul 2024 08:48:18 +0200 Subject: [PATCH 1/2] Remove htpasswd code in htaccess files to not interfere with the knockknock plugin --- config/htaccess-production | 14 -------------- config/htaccess-staging | 14 -------------- 2 files changed, 28 deletions(-) diff --git a/config/htaccess-production b/config/htaccess-production index 9e6aa145..414c3651 100644 --- a/config/htaccess-production +++ b/config/htaccess-production @@ -1,17 +1,3 @@ -SetEnvIf Request_URI "/frontend/img/site/logo.png" publiclogo -Order Allow,Deny -AuthType Basic -AuthName "Authentication Required" -AuthUserFile /data/sites/web/[PROJECT_CODE_HERE]livestatikbe/.htpasswd -Require valid-user -Allow from 81.82.199.174 -Allow from 94.225.165 -Allow from 79.174.134.38 -Allow from 79.174.134.39 -Allow from 127.0.0.1 -Allow from env=publiclogo -Satisfy Any - RewriteEngine On diff --git a/config/htaccess-staging b/config/htaccess-staging index 8fdee6a9..bafd8a5b 100644 --- a/config/htaccess-staging +++ b/config/htaccess-staging @@ -1,17 +1,3 @@ -SetEnvIf Request_URI "/frontend/img/site/logo.png" publiclogo -Order Allow,Deny -AuthType Basic -AuthName "Authentication Required" -AuthUserFile /data/sites/web/[PROJECT_CODE_HERE]livestatikbe/.htpasswd -Require valid-user -Allow from 81.82.199.174 -Allow from 94.225.165 -Allow from 79.174.134.38 -Allow from 79.174.134.39 -Allow from 127.0.0.1 -Allow from env=publiclogo -Satisfy Any - RewriteEngine On From ca777a426062a49675b651da9098189c0f1413ce Mon Sep 17 00:00:00 2001 From: Sarah Date: Fri, 19 Jul 2024 14:12:16 +0200 Subject: [PATCH 2/2] Re-add htaccess code but place in comment --- config/htaccess-production | 14 ++++++++++++++ config/htaccess-staging | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/config/htaccess-production b/config/htaccess-production index 414c3651..44923626 100644 --- a/config/htaccess-production +++ b/config/htaccess-production @@ -1,3 +1,17 @@ +# SetEnvIf Request_URI "/frontend/img/site/logo.png" publiclogo +# Order Allow,Deny +# AuthType Basic +# AuthName "Authentication Required" +# AuthUserFile /data/sites/web/[PROJECT_CODE_HERE]livestatikbe/.htpasswd +# Require valid-user +# Allow from 81.82.199.174 +# Allow from 94.225.165 +# Allow from 79.174.134.38 +# Allow from 79.174.134.39 +# Allow from 127.0.0.1 +# Allow from env=publiclogo +# Satisfy Any + RewriteEngine On diff --git a/config/htaccess-staging b/config/htaccess-staging index bafd8a5b..d4cb45fc 100644 --- a/config/htaccess-staging +++ b/config/htaccess-staging @@ -1,3 +1,17 @@ +# SetEnvIf Request_URI "/frontend/img/site/logo.png" publiclogo +# Order Allow,Deny +# AuthType Basic +# AuthName "Authentication Required" +# AuthUserFile /data/sites/web/[PROJECT_CODE_HERE]livestatikbe/.htpasswd +# Require valid-user +# Allow from 81.82.199.174 +# Allow from 94.225.165 +# Allow from 79.174.134.38 +# Allow from 79.174.134.39 +# Allow from 127.0.0.1 +# Allow from env=publiclogo +# Satisfy Any + RewriteEngine On