Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 670 Bytes

README.md

File metadata and controls

6 lines (4 loc) · 670 Bytes

PHP-Apache-Custom-StartupScript

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.conf is used to copy over the existing conf file under /etc/apache2/apache2.confso we can bring our own configuration
  • In apache2.conf we set SecServerSignature to " ", in conjunction with libapache2-mod-security2 in startup.sh, this effectively removes the Server header on all responses.