For security purpose sometimes we need to hide our server identity. We can hide server signatures by folloiwing these steps :
Step: 1
Login with your AWS – EC2 Instance using SSH.
Open your apache server config file present at /etc/apache2/ using following command:
1 | sudo nano /ec2/apache2/apache2.conf |
Step: 2
Now add the following code if missing, in case if exists please uncomment it:
1 2 | ServerSignature Off ServerTokens Prod |
Save the file and restart Apache server using :
1 | sudo service apache2 reload |