File tree Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,15 @@ RUN { \
62
62
echo 'html_errors = Off' ; \
63
63
} > /usr/local/etc/php/conf.d/error-logging.ini
64
64
65
- RUN a2enmod rewrite expires
65
+ RUN a2enmod rewrite expires remoteip
66
+
67
+ RUN { \
68
+ echo 'RemoteIPHeader X-Forwarded-For' ; \
69
+ echo 'RemoteIPTrustedProxy 10.0.0.0/8' ; \
70
+ echo 'RemoteIPTrustedProxy 172.16.0.0/12' ; \
71
+ echo 'RemoteIPTrustedProxy 192.168.0.0/16' ; \
72
+ } > /etc/apache2/conf-available/remoteip.conf ; \
73
+ a2enconf remoteip
66
74
67
75
VOLUME /var/www/html
68
76
Original file line number Diff line number Diff line change @@ -62,7 +62,15 @@ RUN { \
62
62
echo 'html_errors = Off' ; \
63
63
} > /usr/local/etc/php/conf.d/error-logging.ini
64
64
65
- RUN a2enmod rewrite expires
65
+ RUN a2enmod rewrite expires remoteip
66
+
67
+ RUN { \
68
+ echo 'RemoteIPHeader X-Forwarded-For' ; \
69
+ echo 'RemoteIPTrustedProxy 10.0.0.0/8' ; \
70
+ echo 'RemoteIPTrustedProxy 172.16.0.0/12' ; \
71
+ echo 'RemoteIPTrustedProxy 192.168.0.0/16' ; \
72
+ } > /etc/apache2/conf-available/remoteip.conf ; \
73
+ a2enconf remoteip
66
74
67
75
VOLUME /var/www/html
68
76
Original file line number Diff line number Diff line change @@ -63,7 +63,15 @@ RUN { \
63
63
echo 'html_errors = Off' ; \
64
64
} > /usr/local/etc/php/conf.d/error-logging.ini
65
65
66
- RUN a2enmod rewrite expires
66
+ RUN a2enmod rewrite expires remoteip
67
+
68
+ RUN { \
69
+ echo 'RemoteIPHeader X-Forwarded-For' ; \
70
+ echo 'RemoteIPTrustedProxy 10.0.0.0/8' ; \
71
+ echo 'RemoteIPTrustedProxy 172.16.0.0/12' ; \
72
+ echo 'RemoteIPTrustedProxy 192.168.0.0/16' ; \
73
+ } > /etc/apache2/conf-available/remoteip.conf ; \
74
+ a2enconf remoteip
67
75
68
76
VOLUME /var/www/html
69
77
You can’t perform that action at this time.
0 commit comments