Skip to content

Customize apache2.conf with libapache2-mod-security2 to remove the 'Server' response header from all requests.

Notifications You must be signed in to change notification settings

Ajsalemo/PHP-Apache-Custom-StartupScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Customize apache2.conf with libapache2-mod-security2 to remove the 'Server' response header from all requests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published