Skip to content

Commit

Permalink
Merge pull request #474 from hemberger/apache-logs
Browse files Browse the repository at this point in the history
Dockerfile: disable apache access logging
  • Loading branch information
hemberger authored Apr 30, 2018
2 parents a4e970f + c74c126 commit dd6de29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN [ "$PHP_DEBUG" = "1" ] && echo "Using development php.ini" || \
&& cp /usr/src/php/php.ini-production /usr/local/etc/php/php.ini; \
}

# Disable apache access logging (error logging is still enabled)
RUN sed -i 's|CustomLog.*|CustomLog /dev/null common|' /etc/apache2/sites-enabled/000-default.conf

# Disable apache .htaccess files (suggested optimization)
RUN sed -i 's/AllowOverride All/AllowOverride None/g' /etc/apache2/conf-enabled/docker-php.conf

Expand Down

0 comments on commit dd6de29

Please sign in to comment.