|
|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|
|