I've read on one site that I need to add two lines to httpd.conf
file:
ServerSignature Off
ServerTokens Prod
But when I've added them nothing changed. As previously I can see in my browser
Apache/2.2.16 (Debian)
Maybe that's important: When I opened file (I mean before adding above lines) httpd.conf
I saw it's empty. I use VPS.
Thanks!
Server Identification The ServerTokens directive sets the value of the Server HTTP response header field. The ServerName , UseCanonicalName and UseCanonicalPhysicalPort directives are used by the server to determine how to construct self-referential URLs.
Simple:
sudo nano /etc/apache2/conf-enabled/security.conf
Then:
ServerTokens OS
to ServerTokens Prod
ServerSignature On
to ServerSignature Off
Restart Apache :
sudo service apache2 restart
This article may also help you: Hide Apache Information
you didnt give enough information about os/distribution etc
but in ubuntu's apache installation apache2.conf looks like this:
<cut>
Include httpd.conf
Include ports.conf
Include conf.d/
Include sites-enabled/
and in conf.d/security you can see
ServerTokens OS
just check your configs, somewhere it gets overwritten after you set it in your httpd.conf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With