Merge "Set ServerTokens parameter to 'Prod' for Ubuntu Apache config"
This commit is contained in:
commit
b6a0f98346
@ -31,6 +31,7 @@ RUN apt-get -y install --no-install-recommends \
|
|||||||
libapache2-mod-wsgi \
|
libapache2-mod-wsgi \
|
||||||
gettext \
|
gettext \
|
||||||
&& echo > /etc/apache2/ports.conf \
|
&& echo > /etc/apache2/ports.conf \
|
||||||
|
&& sed -i 's|\(ServerTokens \)OS|\1Prod|' /etc/apache2/conf-available/security.conf \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& ln -s ../mods-available/headers.load /etc/apache2/mods-enabled/headers.load
|
&& ln -s ../mods-available/headers.load /etc/apache2/mods-enabled/headers.load
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user