File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ RUN a2enmod rewrite expires remoteip
64
64
65
65
RUN { \
66
66
echo 'RemoteIPHeader X-Forwarded-For' ; \
67
+ echo 'RemoteIPTrustedProxy 10.0.0.0/8' ; \
68
+ echo 'RemoteIPTrustedProxy 172.16.0.0/12' ; \
69
+ echo 'RemoteIPTrustedProxy 192.168.0.0/16' ; \
67
70
} > /etc/apache2/conf-available/remoteip.conf ; \
68
71
a2enconf remoteip
69
72
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ RUN a2enmod rewrite expires remoteip
64
64
65
65
RUN { \
66
66
echo 'RemoteIPHeader X-Forwarded-For' ; \
67
+ echo 'RemoteIPTrustedProxy 10.0.0.0/8' ; \
68
+ echo 'RemoteIPTrustedProxy 172.16.0.0/12' ; \
69
+ echo 'RemoteIPTrustedProxy 192.168.0.0/16' ; \
67
70
} > /etc/apache2/conf-available/remoteip.conf ; \
68
71
a2enconf remoteip
69
72
Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ RUN a2enmod rewrite expires remoteip
65
65
66
66
RUN { \
67
67
echo 'RemoteIPHeader X-Forwarded-For' ; \
68
+ echo 'RemoteIPTrustedProxy 10.0.0.0/8' ; \
69
+ echo 'RemoteIPTrustedProxy 172.16.0.0/12' ; \
70
+ echo 'RemoteIPTrustedProxy 192.168.0.0/16' ; \
68
71
} > /etc/apache2/conf-available/remoteip.conf ; \
69
72
a2enconf remoteip
70
73
You can’t perform that action at this time.
0 commit comments