Skip to content

Commit a0aacf3

Browse files
committed
Replace RemoteIPTrustedProxy by RemoteIPInternalProxy in remoteip.conf
Else the internal IP ranges are ignored Fixes #829
1 parent 6fa05d9 commit a0aacf3

File tree

7 files changed

+35
-35
lines changed

7 files changed

+35
-35
lines changed

Dockerfile.template

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ RUN set -eux; \
165165
{ \
166166
echo 'RemoteIPHeader X-Forwarded-For'; \
167167
# these IP ranges are reserved for "private" use and should thus *usually* be safe inside Docker
168-
echo 'RemoteIPTrustedProxy 10.0.0.0/8'; \
169-
echo 'RemoteIPTrustedProxy 172.16.0.0/12'; \
170-
echo 'RemoteIPTrustedProxy 192.168.0.0/16'; \
171-
echo 'RemoteIPTrustedProxy 169.254.0.0/16'; \
172-
echo 'RemoteIPTrustedProxy 127.0.0.0/8'; \
168+
echo 'RemoteIPInternalProxy 10.0.0.0/8'; \
169+
echo 'RemoteIPInternalProxy 172.16.0.0/12'; \
170+
echo 'RemoteIPInternalProxy 192.168.0.0/16'; \
171+
echo 'RemoteIPInternalProxy 169.254.0.0/16'; \
172+
echo 'RemoteIPInternalProxy 127.0.0.0/8'; \
173173
} > /etc/apache2/conf-available/remoteip.conf; \
174174
a2enconf remoteip; \
175175
# https://github.com/docker-library/wordpress/issues/383#issuecomment-507886512

beta/php8.0/apache/Dockerfile

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

beta/php8.1/apache/Dockerfile

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

beta/php8.2/apache/Dockerfile

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

latest/php8.0/apache/Dockerfile

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

latest/php8.1/apache/Dockerfile

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

latest/php8.2/apache/Dockerfile

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)