Set ServerTokens parameter to 'Prod' for Ubuntu Apache config
The default value of the ServerTokens parameter is OS by default when using Ubuntu as base image. This results in "Server: Apache/2.4.7 (Ubuntu)" as server signature. Setting the parameter to "Prod" produces a less verbose server signature. Change-Id: I9a1422890cc667423bde73ea2dd7be143eb8b04a Partial-bug: #1586112
This commit is contained in:
parent
6f5239ce40
commit
d1b170dfd8
@ -31,6 +31,7 @@ RUN apt-get install -y --no-install-recommends \
|
||||
libapache2-mod-wsgi \
|
||||
gettext \
|
||||
&& echo > /etc/apache2/ports.conf \
|
||||
&& sed -i 's|\(ServerTokens \)OS|\1Prod|' /etc/apache2/conf-available/security.conf \
|
||||
&& apt-get clean \
|
||||
&& ln -s ../mods-available/headers.load /etc/apache2/mods-enabled/headers.load
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user