Loading Dockerfile +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ RUN ln -s /etc/apache2/conf-available/remoteip.conf /etc/apache2/conf-enabled/r # replace %h = host always pointing to haproxy ip by %a in LogFormat to get real users ip # as per https://www.globo.tech/learning-center/x-forwarded-for-ip-apache-web-server/ RUN sed -i 's/"%h/"%a/g' /etc/apache2/apache2.conf RUN sed -i 's/ServerTokens OS/ServerTokens Prod/g' /etc/apache2/conf-enabled/security.conf RUN sed -i 's/ServerSignature On/ServerSignature Off/g' /etc/apache2/conf-enabled/security.conf COPY --chown=www-data:www-data --from=build /tmp/build/ /var/www/html/ Loading htdocs/php.ini 0 → 100644 +1 −0 Original line number Diff line number Diff line expose_php = 0 No newline at end of file Loading
Dockerfile +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ RUN ln -s /etc/apache2/conf-available/remoteip.conf /etc/apache2/conf-enabled/r # replace %h = host always pointing to haproxy ip by %a in LogFormat to get real users ip # as per https://www.globo.tech/learning-center/x-forwarded-for-ip-apache-web-server/ RUN sed -i 's/"%h/"%a/g' /etc/apache2/apache2.conf RUN sed -i 's/ServerTokens OS/ServerTokens Prod/g' /etc/apache2/conf-enabled/security.conf RUN sed -i 's/ServerSignature On/ServerSignature Off/g' /etc/apache2/conf-enabled/security.conf COPY --chown=www-data:www-data --from=build /tmp/build/ /var/www/html/ Loading
htdocs/php.ini 0 → 100644 +1 −0 Original line number Diff line number Diff line expose_php = 0 No newline at end of file