Skip to content

Commit 85d1380

Browse files
committed
trying to hide the apache server tokens
1 parent 0e3c729 commit 85d1380

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ RUN { \
4444
COPY etc/apache-vhost.conf /etc/apache2/sites-enabled/000-default.conf
4545
COPY etc/php.ini /usr/local/etc/php/php.ini
4646

47+
RUN echo "ServerTokens Prod\nServerSignature Off" >> /etc/apache2/conf-available/harden.conf && \
48+
a2enconf harden
49+
4750
RUN mkdir -p /app
4851
COPY composer.json /app/
4952
WORKDIR /app

0 commit comments

Comments
 (0)