Customize apache2.conf with libapache2-mod-security2 to remove the 'Server' response header from all requests. This sample was made to deploy on Azure Linux Webapps with the use of the custom startup script set under /home/site.
apache2.confis used to copy over the existing conf file under/etc/apache2/apache2.confso we can bring our own configuration- In
apache2.confwe setSecServerSignatureto " ", in conjunction withlibapache2-mod-security2instartup.sh, this effectively removes theServerheader on all responses.