Tag Archives: server tag

How to disable apache2 / nginx / php server signatures

When you make a http request, by default, you get the apache2 and the php version:

curl -v domain.tldn

What you can do if you want to hide it, is to append to your /etc/apache2/apache2.conf file these two lines

You also can do it for nginx at /etc/nginx/nginx.conf file:

You can’t remove the “nginx” word this way, but at least you can hide server versión. You can find a workaround here.

For the php you can edit your /etc/php5/apache2/php.ini file and add this: