summaryrefslogtreecommitdiffstats
path: root/26
diff options
context:
space:
mode:
authorMossroy <mossroy@mossroy.fr>2023-08-20 23:19:13 +0200
committerGitHub <noreply@github.com>2023-08-20 21:19:13 +0000
commit04e4138db58a1bfaccf3340c2df3d46df04beb08 (patch)
tree161fa8bb7348ce23eb6a4cb18e58914146a4dbc3 /26
parentc4966442a623e04bdc438a2023b8bdb640c4408a (diff)
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 <mossroy@mossroy.fr>
Diffstat (limited to '26')
-rw-r--r--26/apache/Dockerfile6
1 files changed, 3 insertions, 3 deletions
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