File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,13 @@ RUN { \
4444COPY etc/apache-vhost.conf /etc/apache2/sites-enabled/000-default.conf
4545COPY etc/php.ini /usr/local/etc/php/php.ini
4646
47- RUN echo "ServerTokens Prod\n ServerSignature Off" >> /etc/apache2/conf-available/harden.conf && \
48- a2enconf harden
47+ # For PCI scans this disables all our Apache information no matter how the scanner tries
48+ # to scan stuff, and trust me they do weird stuff I had to dig for to make it work.
49+ # See this for more information: https://github.com/proudcity/pc-dev-issues/issues/125
50+ RUN echo "ServerTokens Prod\n ServerSignature Off" > /etc/apache2/conf-available/harden.conf && \
51+ a2enconf harden && \
52+ a2disconf security
53+
4954
5055RUN mkdir -p /app
5156COPY composer.json /app/
You can’t perform that action at this time.
0 commit comments