docker/apaches/Dockerfile
thopic 42da47a706
[PHP] Bump to 7.4.21
CERTFR-2021-AVI-501
2021-07-20 17:19:53 +02:00

12 lines
533 B
Docker

from php:7.4.21-apache
RUN a2enmod remoteip
RUN echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf-available/remoteip.conf
RUN a2enconf remoteip
RUN sed -i -r 's/^ServerTokens .*/ServerTokens Prod/g' /etc/apache2/conf-available/security.conf
RUN sed -i -r 's/^ServerSignature .*/ServerSignature Off/g' /etc/apache2/conf-available/security.conf
RUN sed -i -E 's/^LogFormat "%h(.*)/LogFormat "%a\1/g' /etc/apache2/apache2.conf
RUN echo "expose_php = Off" > /usr/local/etc/php/conf.d/php_version.ini
CMD ["apache2-foreground"]