From 04e4138db58a1bfaccf3340c2df3d46df04beb08 Mon Sep 17 00:00:00 2001 From: Mossroy Date: Sun, 20 Aug 2023 23:19:13 +0200 Subject: Replace RemoteIPTrustedProxy by RemoteIPInternalProxy in remoteip.conf (#2004) Else the internal IP ranges are ignored See https://httpd.apache.org/docs/2.4/en/mod/mod_remoteip.html#remoteiptrustedproxy and https://httpd.apache.org/docs/2.4/en/mod/mod_remoteip.html#remoteipinternalproxy Signed-off-by: Mossroy --- 26/apache/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '26') diff --git a/26/apache/Dockerfile b/26/apache/Dockerfile index c2ba4d5f..e67973a8 100644 --- a/26/apache/Dockerfile +++ b/26/apache/Dockerfile @@ -125,9 +125,9 @@ VOLUME /var/www/html RUN a2enmod headers rewrite remoteip ;\ {\ echo RemoteIPHeader X-Real-IP ;\ - echo RemoteIPTrustedProxy 10.0.0.0/8 ;\ - echo RemoteIPTrustedProxy 172.16.0.0/12 ;\ - echo RemoteIPTrustedProxy 192.168.0.0/16 ;\ + echo RemoteIPInternalProxy 10.0.0.0/8 ;\ + echo RemoteIPInternalProxy 172.16.0.0/12 ;\ + echo RemoteIPInternalProxy 192.168.0.0/16 ;\ } > /etc/apache2/conf-available/remoteip.conf;\ a2enconf remoteip -- cgit v1.2.3