forked from kamba4/sunders
mitigate php vuln
This commit is contained in:
parent
60694442c2
commit
dcadc32d07
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ RUN docker-php-ext-install mysqli bcmath
|
||||||
|
|
||||||
# Use PHP's production defaults (no error output to clients) and hide the PHP version.
|
# Use PHP's production defaults (no error output to clients) and hide the PHP version.
|
||||||
RUN cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
|
RUN cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
|
||||||
&& printf 'expose_php = Off\n' > "$PHP_INI_DIR/conf.d/zz-hardening.ini"
|
&& printf 'expose_php = Off\nsession.upload_progress.enabled = 0\n' > "$PHP_INI_DIR/conf.d/zz-hardening.ini"
|
||||||
|
|
||||||
# Disable directory listings and reduce the server signature.
|
# Disable directory listings and reduce the server signature.
|
||||||
RUN sed -i 's/^\(\s*Options\) Indexes FollowSymLinks/\1 FollowSymLinks/' /etc/apache2/apache2.conf \
|
RUN sed -i 's/^\(\s*Options\) Indexes FollowSymLinks/\1 FollowSymLinks/' /etc/apache2/apache2.conf \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue