From: Oliver Böttcher Date: Thu, 21 Sep 2017 11:32:44 +0000 (+0200) Subject: ODT - disable https for several ips X-Git-Tag: v0.1.0~2469^2 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=db7e433cefe3633982a27abf2424cb624aab6caa;p=pixelpark%2Fhiera.git ODT - disable https for several ips --- diff --git a/customer/mbvd-odt/odt-daimler-com.pixelpark.net.yaml b/customer/mbvd-odt/odt-daimler-com.pixelpark.net.yaml index 081692f3..44bb3342 100644 --- a/customer/mbvd-odt/odt-daimler-com.pixelpark.net.yaml +++ b/customer/mbvd-odt/odt-daimler-com.pixelpark.net.yaml @@ -51,8 +51,8 @@ infra::profile::apache::pp_vhosts: - https: comment: 'almost all to https' rewrite_cond: - - "expr \"! -R '77.74.234.0/25'\" [OR]" - - "expr \"! -R '93.188.107.192/26'\" [OR]" + - "expr \"! %%{ich-trickse}{HTTP:X-Forwarded-For} -ipmatch '77.74.234.0/25'\" [OR]" + - "expr \"! %%{ich-trickse}{HTTP:X-Forwarded-For} -ipmatch '93.188.107.192/26'\" [OR]" - '%%{ich-trickse}{REQUEST_URI} !^/.\.html' rewrite_rule: - '^(.*)$ https://odt.daimler.com$1 [L,R=301]'