[Web server] Hide Apache and PHP information on Ubuntu
By default, Apache will send version and modules information (e.g., mod_php, mod_perl, mod_ssl) in every HTTP header.
This tutorial for guide to fixed it, remove version and signature of Apache and PHP on Ubuntu server
1. Hide Apache information
Step 1.Edit security file:
Step 1. Edit php.ini file:
This tutorial for guide to fixed it, remove version and signature of Apache and PHP on Ubuntu server
1. Hide Apache information
Step 1.Edit security file:
sudo nano /etc/apache2/conf.d/securityChange the following option:
ServerTokens ProdStep 2. Restart apache services
ServerSignature Off
sudo /etc/init.d/apache2 restart2 Hide PHP Version Details
Step 1. Edit php.ini file:
sudo nano /etc/php5/apache/php.iniChange the following option:
expose_php OffStep 2. Restart apache services
sudo /etc/init.d/apache2 restart